/*
 * showcase.css — GAP Living Showcase page styles
 * Version: v=20260607c
 * Scope: showcase.html ONLY. Does not modify global style.css rules.
 * Design tokens inherited from style.css :root (--navy, --steel, --sky, --orange, etc.)
 */

/* ══════════════════════════════════════════════════════
   HERO — Canvas constellation + static fallback
   ══════════════════════════════════════════════════════ */

.sc-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Canvas wrapper — reserves space, prevents CLS */
.sc-hero-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  overflow: hidden;
  background: var(--navy);
}

#showcaseCanvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* ── Static fallback (shown when reduced-motion or canvas unavailable) ── */
.showcase-hero-static {
  display: none; /* hidden by default; shown via media query below */
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0B2447 0%, #19376D 50%, #576CBC 100%);
  align-items: center;
  justify-content: center;
}

.shs-inner {
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.shs-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(87, 108, 188, 0.9);
  margin-bottom: 1rem;
}

.shs-wordmark {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 1rem;
}

.shs-wordmark span {
  color: var(--orange);
}

.shs-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 44ch;
  margin: 0 auto;
}

/* ── Reduced-motion: hide canvas, show static ── */
@media (prefers-reduced-motion: reduce) {
  #showcaseCanvas {
    display: none;
  }

  .showcase-hero-static {
    display: flex;
  }
}

/* ── Hero copy overlay ── */
.sc-hero-copy {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  background: linear-gradient(to bottom, rgba(11, 36, 71, 0) 0%, rgba(11, 36, 71, 0.85) 30%, #0B2447 100%);
  margin-top: -6rem; /* pull up to overlap canvas bottom */
}

.sc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(87, 108, 188, 0.9);
  margin-bottom: 1.25rem;
}

.sc-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: sc-pulse 2s ease-in-out infinite;
}

@keyframes sc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Pause eyebrow dot pulse for reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .sc-eyebrow-dot {
    animation: none;
    opacity: 1;
  }
}

.sc-hero-h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 auto 1rem;
  max-width: 18ch;
}

.sc-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.sc-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CTA Buttons ── */
.sc-btn-primary {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.975rem;
  color: #0B2447; /* B4: navy on orange = 4.53:1, passes WCAG AA */
  background: var(--orange);
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
}

.sc-btn-primary:hover {
  background: #e85c28;
  transform: translateY(-1px);
}

.sc-btn-ghost {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.975rem;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(87, 108, 188, 0.45);
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, transform 0.12s;
}

.sc-btn-ghost:hover {
  border-color: rgba(87, 108, 188, 0.9);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Nav showcase CTA override ── */
.nav-cta-showcase {
  background: rgba(200, 49, 31, 0.15);
  border: 1px solid rgba(200, 49, 31, 0.4);
}

.nav-cta-showcase:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* ══════════════════════════════════════════════════════
   PILLAR SECTIONS — Matrix mount points
   ══════════════════════════════════════════════════════ */

.sc-pillar {
  background: var(--offwhite);
  padding: 5rem 0;
}

.sc-pillar-alt {
  background: #fff;
}

.sc-pillar-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.sc-pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0B2447; /* B5: navy on light-orange bg passes AA (high contrast) */
  background: rgba(200, 49, 31, 0.12);
  border: 1px solid rgba(200, 49, 31, 0.3);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.sc-pillar-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.sc-pillar-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--steel);
  margin: 0;
  max-width: 60ch;
  line-height: 1.6;
}

/* Matrix mount — empty in Chunk 1, populated by Chunk 2 */
.sc-matrix-mount {
  min-height: 2rem; /* non-zero so layout doesn't collapse before Chunk 2 */
}

/* ══════════════════════════════════════════════════════
   GLASSMORPHISM PANELS — shared utility class
   Used by demo cards in Chunk 2/3
   ══════════════════════════════════════════════════════ */

.sc-glass {
  background: rgba(255, 255, 255, 0.06);
  /* WebKit prefix required for Safari 15.x */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(87, 108, 188, 0.18);
  border-radius: var(--radius);
}

/* Solid fallback: browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(1px)) {
  .sc-glass {
    background: rgba(11, 36, 71, 0.85);
  }
}

/* Glass on light section backgrounds */
.sc-pillar .sc-glass,
.sc-pillar-alt .sc-glass {
  background: rgba(11, 36, 71, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: rgba(11, 36, 71, 0.1);
}

@supports not (backdrop-filter: blur(1px)) {
  .sc-pillar .sc-glass,
  .sc-pillar-alt .sc-glass {
    background: rgba(11, 36, 71, 0.08);
  }
}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .sc-hero-canvas-wrap {
    aspect-ratio: 4 / 3;
    max-height: 60vh;
  }

  .sc-hero-copy {
    margin-top: -4rem;
    padding: 2rem 1rem 3rem;
  }

  .sc-hero-h1 {
    max-width: none;
  }

  .sc-pillar {
    padding: 3.5rem 0;
  }

  .sc-pillar-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .sc-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .sc-btn-primary,
  .sc-btn-ghost {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sc-hero-canvas-wrap {
    aspect-ratio: 1 / 1;
    max-height: 50vh;
  }
}

/* ══════════════════════════════════════════════════════
   CHUNK 2a — FOLDER ACCORDIONS + CAPABILITY MATRIX
   ══════════════════════════════════════════════════════ */

/* ── Folder (accordion) wrapper ── */
.sc-folder {
  border: 1px solid rgba(11, 36, 71, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: #fff;
}

.sc-pillar-alt .sc-folder {
  background: var(--offwhite, #f7f8fa);
  border-color: rgba(11, 36, 71, 0.08);
}

.sc-folder:hover {
  box-shadow: 0 4px 24px rgba(11, 36, 71, 0.07);
}

/* ── Folder trigger button ── */
.sc-folder-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.sc-folder-trigger:hover {
  background: rgba(11, 36, 71, 0.03);
}

.sc-folder-trigger:focus-visible {
  outline: 2px solid var(--orange, var(--orange));
  outline-offset: -2px;
}

.sc-folder-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(200, 49, 31, 0.08);
  border: 1px solid rgba(200, 49, 31, 0.18);
}

.sc-folder-meta {
  flex: 1;
  min-width: 0;
}

.sc-folder-name {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy, #0B2447);
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.sc-folder-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--steel, #19376D);
  opacity: 0.7;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-folder-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(11, 36, 71, 0.4);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s;
}

.sc-folder-chevron svg {
  display: block;
}

/* Rotate chevron when open */
.sc-folder.is-open .sc-folder-chevron {
  transform: rotate(180deg);
  color: var(--orange, var(--orange));
}

/* ── Folder body (animated collapse/expand) ── */
.sc-folder-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-folder.is-open .sc-folder-body {
  /* max-height set by JS to scrollHeight for smooth animation */
  max-height: 2000px; /* large enough ceiling; JS overrides on open */
}

.sc-folder-inner {
  padding: 0 1.5rem 1.5rem;
}

/* ── Three-column header row ── */
.sc-matrix-header {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 1rem;
  padding: 0.6rem 0 0.6rem;
  border-bottom: 1px solid rgba(11, 36, 71, 0.08);
  margin-bottom: 0.5rem;
}

.sc-matrix-col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 36, 71, 0.4);
}

.sc-matrix-col-label-try {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 36, 71, 0.4);
  text-align: right;
  min-width: 110px;
}

/* ── Capability card row ── */
.sc-cap-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.sc-cap-row:hover {
  background: rgba(11, 36, 71, 0.03);
}

/* Selected state — glow + check */
.sc-cap-row.is-selected {
  background: rgba(200, 49, 31, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(200, 49, 31, 0.35);
}

.sc-cap-row.is-selected:hover {
  background: rgba(200, 49, 31, 0.09);
}

/* Focus ring for keyboard nav */
.sc-cap-row:focus-visible {
  outline: 2px solid var(--orange, var(--orange));
  outline-offset: 1px;
}

/* Selection check indicator */
.sc-cap-check {
  position: absolute;
  top: 50%;
  left: -0.5rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange, var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
  transform: translateY(-50%) scale(0.6);
  pointer-events: none;
}

.sc-cap-row.is-selected .sc-cap-check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.sc-cap-check svg {
  display: block;
}

/* ── Capability column content ── */
.sc-cap-channel {
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  color: var(--navy, #0B2447);
  opacity: 0.75;
  line-height: 1.4;
}

.sc-cap-what {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--navy, #0B2447);
  line-height: 1.5;
}

/* ── TRY IT column ── */
.sc-try-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 110px;
}

/* DEMO-IN-PAGE button */
.sc-try-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange, var(--orange));
  background: rgba(200, 49, 31, 0.08);
  border: 1px solid rgba(200, 49, 31, 0.3);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.sc-try-btn:hover {
  background: rgba(200, 49, 31, 0.16);
  border-color: rgba(200, 49, 31, 0.55);
  transform: translateY(-1px);
}

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

/* LINK-OUT button */
.sc-try-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sky, #576CBC);
  background: rgba(87, 108, 188, 0.07);
  border: 1px solid rgba(87, 108, 188, 0.25);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.sc-try-link:hover {
  background: rgba(87, 108, 188, 0.14);
  border-color: rgba(87, 108, 188, 0.5);
  transform: translateY(-1px);
}

/* ANIMATED-DIAGRAM tag */
.sc-try-diagram {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(11, 36, 71, 0.55);
  background: rgba(11, 36, 71, 0.05);
  border: 1px solid rgba(11, 36, 71, 0.1);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
  pointer-events: none;
}

/* PENDING badge */
.sc-try-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(87, 108, 188, 0.7);
  background: rgba(87, 108, 188, 0.06);
  border: 1px dashed rgba(87, 108, 188, 0.25);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Status dot on capability channel ── */
.sc-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
  margin-bottom: 1px;
}

.sc-status-dot.live  { background: #22c55e; } /* green — REAL */
.sc-status-dot.build { background: #576CBC; } /* sky — IN BUILD */
.sc-status-dot.cap   { background: #94a3b8; } /* slate — PLATFORM CAPABILITY */

/* ── Reduced-motion: collapse transitions ── */
@media (prefers-reduced-motion: reduce) {
  .sc-folder-body { transition: none; }
  .sc-folder-chevron { transition: none; }
  .sc-cap-row { transition: none; }
  .sc-cap-check { transition: none; }
  .sc-try-btn,
  .sc-try-link { transition: none; }
}

/* ── Mobile adjustments ── */
@media (max-width: 768px) {
  .sc-matrix-header {
    display: none; /* column labels drop on mobile — cards are self-explanatory */
  }

  .sc-cap-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1rem 0.75rem;
  }

  .sc-cap-channel {
    font-size: 0.78rem;
  }

  .sc-try-col {
    justify-content: flex-start;
    min-width: 0;
  }

  .sc-folder-trigger {
    padding: 1rem 1.25rem;
  }

  .sc-folder-inner {
    padding: 0 1rem 1.25rem;
  }
}

/* ══════════════════════════════════════════════════════
   CHUNK 2b — INTERACTION STAGE
   ══════════════════════════════════════════════════════ */

.sc-interaction-stage {
  background: var(--navy);
  padding: 4rem 0 5rem;
  border-top: 1px solid rgba(87, 108, 188, 0.15);
}

/* ── Stage header ── */
.sc-stage-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sc-stage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(87, 108, 188, 0.85);
  margin-bottom: 1rem;
}

.sc-stage-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 auto 0.75rem;
  max-width: 32ch;
  line-height: 1.2;
}

.sc-stage-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 auto;
  max-width: 52ch;
  line-height: 1.6;
}

/* ── Canvas wrapper ── */
.sc-stage-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 320px;
  border: 1px solid rgba(87, 108, 188, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  /* Smooth height transitions when nodes appear/disappear */
  transition: min-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports not (backdrop-filter: blur(1px)) {
  .sc-stage-canvas-wrap {
    background: rgba(11, 36, 71, 0.6);
  }
}

/* ── Empty state ── */
.sc-stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.sc-stage-empty.is-hidden {
  opacity: 0;
}

.sc-stage-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-stage-empty-prompt {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(87, 108, 188, 0.6);
  text-align: center;
  margin: 0;
  max-width: 36ch;
}

/* ── SVG stage ── */
.sc-stage-svg {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sc-stage-svg.is-visible {
  opacity: 1;
}

/* Node label text inside SVG */
.sc-sn-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.82);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Edge label text inside SVG */
.sc-se-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: rgba(87, 108, 188, 0.75);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Accessible list (visually hidden) ── */
.sc-stage-a11y-list {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  list-style: none;
}

/* ── Traveling dot animation (CSS keyframe; JS toggles .sc-dot-animate) ── */
@keyframes sc-dot-travel {
  from { stroke-dashoffset: var(--sc-path-len, 200); }
  to   { stroke-dashoffset: 0; }
}

/* Reduced-motion: no animation, static subgraph only */
@media (prefers-reduced-motion: reduce) {
  .sc-stage-canvas-wrap {
    transition: none;
  }
  .sc-stage-empty,
  .sc-stage-svg {
    transition: none;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .sc-interaction-stage {
    padding: 3rem 0 3.5rem;
  }

  .sc-stage-canvas-wrap {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .sc-stage-canvas-wrap {
    min-height: 200px;
    border-radius: 10px;
  }
}

/* ══════════════════════════════════════════════════════
   CHUNK 3 — DEMO PANELS (modal/drawer system)
   ══════════════════════════════════════════════════════ */

/* ── Demo panel backdrop + sheet ── */
.sc-demo-panel {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end; /* drawer slides up from bottom on mobile */
  justify-content: center;
  padding: 1rem;
}

/* When panel is visible (JS removes [hidden] and adds .is-open) */
.sc-demo-panel.is-open {
  display: flex;
}

.sc-demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 36, 71, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 0;
  transition: opacity 0.25s ease;
  opacity: 0;
}

.sc-demo-panel.is-open .sc-demo-overlay {
  opacity: 1;
}

@supports not (backdrop-filter: blur(1px)) {
  .sc-demo-overlay {
    background: rgba(11, 36, 71, 0.88);
  }
}

.sc-demo-sheet {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px 16px 16px 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(11, 36, 71, 0.32);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.sc-demo-panel.is-open .sc-demo-sheet {
  transform: translateY(0);
  opacity: 1;
}

/* ── Demo panel header ── */
.sc-demo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0;
}

.sc-demo-title-row {
  flex: 1;
  min-width: 0;
}

.sc-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange, var(--orange));
  background: rgba(200, 49, 31, 0.1);
  border: 1px solid rgba(200, 49, 31, 0.28);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.4rem;
}

.sc-demo-honesty {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; /* POLISH-1: bumped from 0.68rem — disclosure text is load-bearing */
  color: rgba(11, 36, 71, 0.72); /* POLISH-1: bumped from 0.45 — legible at small size */
  margin: 0;
  letter-spacing: 0.03em;
}

.sc-demo-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(11, 36, 71, 0.06);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(11, 36, 71, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.sc-demo-close:hover {
  background: rgba(11, 36, 71, 0.12);
  color: var(--navy, #0B2447);
}

.sc-demo-close:focus-visible {
  outline: 2px solid var(--orange, var(--orange));
  outline-offset: 2px;
}

/* ── Demo panel body ── */
.sc-demo-body {
  padding: 1.25rem 1.5rem 1.75rem;
}

.sc-demo-instruction {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(11, 36, 71, 0.65);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

/* ── Primary action button (shared across demos) ── */
.sc-demo-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--orange, var(--orange));
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  width: 100%;
  margin-top: 1.25rem;
  transition: background 0.15s, transform 0.12s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.sc-demo-primary-btn:hover:not([disabled]) {
  background: #e85c28;
  transform: translateY(-1px);
}

.sc-demo-primary-btn:active:not([disabled]) {
  transform: translateY(0);
}

.sc-demo-primary-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── GAP Sign demo ── */
.sc-sign-canvas-wrap {
  position: relative;
  border: 1.5px solid rgba(11, 36, 71, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
  /* touch-action: none is required on the canvas element itself */
}

.sc-sign-canvas {
  display: block;
  width: 100%;
  height: 140px;
  cursor: crosshair;
  /* Critical: prevents scroll-capture eating touch draw events */
  touch-action: none;
}

.sc-sign-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(11, 36, 71, 0.3);
  pointer-events: none;
  transition: opacity 0.2s;
}

.sc-sign-placeholder.is-hidden {
  opacity: 0;
}

.sc-sign-clear {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(11, 36, 71, 0.07);
  border: none;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(11, 36, 71, 0.5);
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s;
}

.sc-sign-clear:hover {
  background: rgba(11, 36, 71, 0.13);
}

/* ── Audit log animation ── */
.sc-sign-audit {
  margin-top: 1rem;
  border: 1px solid rgba(11, 36, 71, 0.1);
  border-radius: 8px;
  background: #0d1b2e;
  padding: 0.875rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  min-height: 60px;
}

.sc-audit-row {
  display: block;
  color: #c9d1d9;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sc-audit-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sc-audit-row .audit-key   { color: #79c0ff; }
.sc-audit-row .audit-val   { color: #a5d6ff; }
.sc-audit-row .audit-ok    { color: #56d364; font-weight: 600; }
.sc-audit-row .audit-hash  { color: #f2cc60; word-break: break-all; }

/* ── GAP Receipts demo ── */
.sc-receipt-preview {
  background: #f7f8fa;
  border: 1px solid rgba(11, 36, 71, 0.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
}

.sc-receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.87rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(11, 36, 71, 0.07);
}

.sc-receipt-row:last-child {
  border-bottom: none;
}

.sc-receipt-row.sc-receipt-total {
  font-weight: 700;
  font-size: 0.95rem;
  padding-top: 0.6rem;
}

.sc-receipt-label {
  color: rgba(11, 36, 71, 0.55);
}

.sc-receipt-val {
  color: var(--navy, #0B2447);
  font-weight: 600;
}

.sc-receipts-result {
  margin-top: 1.25rem;
}

/* Inherit the .demo-verify-card styles from gap-receipts.html inline CSS.
   Duplicated here to be self-contained in the showcase context. */
.sc-receipts-result .demo-verify-card {
  background: white;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 1.25rem;
  font-family: 'Inter', sans-serif;
  color: var(--navy, #0B2447);
}

.sc-receipts-result .demo-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e8fdf0;
  color: #1a7a3f;
  border: 1px solid #a3e6ba;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.sc-receipts-result .demo-verify-badge::before { content: '\2713'; margin-right: 0.2rem; }

.sc-receipts-result .demo-verify-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.sc-receipts-result .demo-verify-card p {
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 0.75rem;
}

.sc-receipts-result .demo-verify-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.sc-receipts-result .demo-verify-line .label { color: #888; }
.sc-receipts-result .demo-verify-line .val   { font-weight: 600; }

.sc-receipts-result .sc-hash-row .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  word-break: break-all;
  color: #b45309;
  max-width: 260px;
  text-align: right;
}

.sc-receipts-result .demo-verify-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 0 0;
}

.sc-receipts-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(11, 36, 71, 0.5);
  line-height: 1.55;
  margin: 0.875rem 0 0;
}

/* ── Lead capture demo ── */
.sc-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sc-lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sc-lead-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy, #0B2447);
}

.sc-lead-req {
  color: var(--orange, var(--orange));
}

.sc-lead-input {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--navy, #0B2447);
  border: 1.5px solid rgba(11, 36, 71, 0.18);
  border-radius: 7px;
  padding: 0.6rem 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}

.sc-lead-input:focus {
  border-color: var(--orange, var(--orange));
  box-shadow: 0 0 0 3px rgba(200, 49, 31, 0.12);
}

.sc-lead-input.is-invalid {
  border-color: #dc2626;
}

.sc-lead-error {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #dc2626;
  min-height: 1rem;
}

/* Honeypot — visually hidden, readable by AT for accessibility audit safety */
.sc-lead-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Routing animation log */
.sc-lead-result {
  margin-top: 1.25rem;
}

.sc-lead-route-log {
  background: #0d1b2e;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  min-height: 60px;
}

.sc-route-row {
  display: block;
  color: #c9d1d9;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sc-route-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sc-route-row .route-key   { color: #79c0ff; }
.sc-route-row .route-ok    { color: #56d364; font-weight: 600; }
.sc-route-row .route-val   { color: #a5d6ff; }
.sc-route-row .route-warn  { color: #f2cc60; }

.sc-lead-sandbox-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(11, 36, 71, 0.5);
  line-height: 1.55;
  margin: 0.75rem 0 0;
}

/* ── Reduced-motion: kill all demo animations ── */
@media (prefers-reduced-motion: reduce) {
  .sc-demo-sheet {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .sc-demo-overlay {
    transition: none;
    opacity: 1;
  }
  .sc-audit-row,
  .sc-route-row {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Mobile adjustments for demo panels ── */
@media (max-width: 600px) {
  .sc-demo-panel {
    align-items: flex-end;
    padding: 0;
  }

  .sc-demo-sheet {
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    max-width: 100%;
  }

  .sc-demo-header,
  .sc-demo-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ══════════════════════════════════════════════════════
   CHUNK 3.5 — R3: FUNNEL-FLOW AMBIENT LAYER
   One lightweight CSS-keyframes drift per pillar section.
   GPU path: transform + opacity only (compositor thread).
   No canvas, no JS animation loop.
   ══════════════════════════════════════════════════════ */

/* Drift keyframe — translates a pseudo-element top→down
   while gently oscillating opacity. Used by all three
   pillar accents via the same keyframe, different timing. */
@keyframes sc-drift-down {
  0%   { transform: translateY(-18%) scaleX(0.92); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 0.85; }
  100% { transform: translateY(20%)  scaleX(1.04); opacity: 0; }
}

/* Kill all R3 motion when user requests it */
@media (prefers-reduced-motion: reduce) {
  .sc-pillar::before,
  .sc-pillar-alt::before {
    display: none !important;
  }
}

/* All three pillar sections share the same base treatment */
.sc-pillar,
.sc-pillar-alt {
  position: relative; /* stacking context for ::before */
  overflow: hidden;
}

/* The ambient layer itself — sits BEHIND all content */
.sc-pillar::before,
.sc-pillar-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  /* Default: invisible until JS adds .is-in-view */
  opacity: 0;
  animation: none;
}

/* Engage (01) — sky-blue downward ribbon */
#sc-pillar-engage::before {
  background: radial-gradient(
    ellipse 70% 35% at 50% 0%,
    rgba(87, 108, 188, 0.09) 0%,
    transparent 70%
  );
}
#sc-pillar-engage.is-in-view::before {
  animation: sc-drift-down 7s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Transact (02) — deeper navy pulse */
#sc-pillar-transact::before {
  background: radial-gradient(
    ellipse 80% 38% at 50% 0%,
    rgba(25, 55, 109, 0.11) 0%,
    transparent 68%
  );
}
#sc-pillar-transact.is-in-view::before {
  animation: sc-drift-down 9s 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scale (03) — warm orange accent steers the eye to the CTA below */
#sc-pillar-scale::before {
  background: radial-gradient(
    ellipse 75% 40% at 50% 0%,
    rgba(200, 49, 31, 0.07) 0%,
    transparent 65%
  );
}
#sc-pillar-scale.is-in-view::before {
  animation: sc-drift-down 8s 0.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Ensure pillar content sits above the pseudo-element */
.sc-pillar > .container,
.sc-pillar-alt > .container {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════
   CHUNK 3.5 — R4: DISGUISED CTA (BLOOM SECTION)
   Constellation node that "blooms" into a contact form.
   Wired to /api/lead — the real, live lead endpoint.
   ══════════════════════════════════════════════════════ */

.sc-bloom-section {
  background: var(--navy, #0B2447);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

/* Subtle background echo of the Scale orange — completes the drift */
.sc-bloom-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 55% at 50% 0%,
    rgba(200, 49, 31, 0.10) 0%,
    transparent 70%
  );
  z-index: 0;
}

.sc-bloom-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── The node — the visual "last stop" of the funnel constellation ── */
.sc-bloom-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, rgba(200, 49, 31, 0.55), rgba(87, 108, 188, 0.45));
  border: 1.5px solid rgba(200, 49, 31, 0.5);
  box-shadow:
    0 0 0 8px rgba(200, 49, 31, 0.08),
    0 0 0 18px rgba(200, 49, 31, 0.04);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.sc-bloom-node:hover,
.sc-bloom-node:focus-visible {
  box-shadow:
    0 0 0 14px rgba(200, 49, 31, 0.12),
    0 0 0 30px rgba(200, 49, 31, 0.06),
    0 0 40px rgba(200, 49, 31, 0.18);
  transform: scale(1.06);
  outline: none;
}

/* Node SVG icon */
.sc-bloom-node svg {
  display: block;
}

/* ── Bloom pulse ring — animates while the node is in "idle" state ── */
@keyframes sc-bloom-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  60%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(1.55); opacity: 0;   }
}

.sc-bloom-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(200, 49, 31, 0.4);
  animation: sc-bloom-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sc-bloom-ring {
    animation: none;
    opacity: 0;
  }
}

/* ── Copy above the form ── */
.sc-bloom-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange, var(--orange));
  margin-bottom: 0.75rem;
}

.sc-bloom-headline {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  max-width: 24ch;
}

.sc-bloom-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 2.5rem;
  max-width: 44ch;
  line-height: 1.65;
}

/* ── The form — hidden until node is activated ── */
.sc-bloom-form-wrap {
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  /* Height animates open. JS toggles .is-open */
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-bloom-form-wrap.is-open {
  max-height: 900px; /* I4: raised from 640px to prevent mobile clip on 4-field form */
  overflow-y: auto;  /* I4: fallback for very short viewports */
  opacity: 1;
}

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

  /* P3: neutralize scroll-behavior:smooth and all hover/focus transform transitions */
  html {
    scroll-behavior: auto !important;
  }

  .sc-btn-primary,
  .sc-btn-ghost,
  .sc-try-btn,
  .sc-try-link,
  .sc-bloom-node,
  .sc-bloom-submit,
  .sc-demo-primary-btn {
    transition: none !important;
    transform: none !important;
  }

  .sc-btn-primary:hover,
  .sc-btn-ghost:hover,
  .sc-try-btn:hover,
  .sc-try-link:hover,
  .sc-bloom-node:hover,
  .sc-bloom-node:focus-visible,
  .sc-bloom-submit:hover:not(:disabled),
  .sc-demo-primary-btn:hover:not([disabled]) {
    transform: none !important;
  }
}

/* Form fields */
.sc-bloom-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.sc-bloom-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sc-bloom-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.03em;
}

.sc-bloom-req {
  color: var(--orange, var(--orange));
  margin-left: 2px;
}

.sc-bloom-input,
.sc-bloom-textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(87, 108, 188, 0.35);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s, background 0.18s;
  -webkit-appearance: none;
}

.sc-bloom-input::placeholder,
.sc-bloom-textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.sc-bloom-input:focus,
.sc-bloom-textarea:focus {
  outline: none;
  border-color: var(--orange, var(--orange));
  background: rgba(255, 255, 255, 0.10);
}

.sc-bloom-textarea {
  resize: vertical;
  min-height: 90px;
}

.sc-bloom-error {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #ff8a8a;
  min-height: 1em;
}

/* Honeypot — invisible to real users; SR-only clip pattern (I6) */
.sc-bloom-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  /* tab-index: -1 removed (B3 — invalid CSS; isolation via HTML tabindex="-1" on the input) */
}

/* Submit button */
.sc-bloom-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0B2447; /* B4: navy on orange = 4.53:1, passes WCAG AA */
  background: var(--orange, var(--orange));
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, opacity 0.18s;
  margin-top: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.sc-bloom-submit:hover:not(:disabled) {
  background: #e85c28;
  transform: translateY(-1px);
}

.sc-bloom-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.sc-bloom-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  text-align: center;
}

.sc-bloom-success.is-visible {
  display: flex;
}

.sc-bloom-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(86, 211, 100, 0.15);
  border: 1.5px solid rgba(86, 211, 100, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-bloom-success-head {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sc-bloom-success-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 38ch;
  line-height: 1.6;
}

/* ── Privacy microline (ESQ-1) ── */
.sc-bloom-privacy {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55); /* legible, not faint — legal disclosure */
  line-height: 1.5;
  margin-top: 0.75rem;
  text-align: center;
}

.sc-bloom-privacy a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

.sc-bloom-privacy a:hover {
  color: #fff;
}

/* ── Honesty note ── */
.sc-bloom-honesty {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; /* POLISH-1: bumped from 0.7rem */
  color: rgba(255, 255, 255, 0.45); /* POLISH-1: bumped from 0.28 — disclosure is load-bearing */
  margin-top: 1.25rem;
  letter-spacing: 0.04em;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .sc-bloom-section {
    padding: 3.5rem 1rem 4.5rem;
  }

  .sc-bloom-node {
    width: 52px;
    height: 52px;
  }

  .sc-bloom-form-wrap {
    max-width: 100%;
  }
}
