/* Exarh landing — v3 extras
 * CSS classes the bundle's pricing.jsx + v3/components.jsx + industries.jsx
 * rely on but which were not part of the current project's legacy styles.css.
 * Loaded AFTER styles.css + v3/styles.css so it can fill gaps.
 *
 * Origin: extracted from iter-trillion bundle styles.css (Claude Design 2026-05-26).
 */

/* ============ Horizontal overflow guard ============
 * Multiple decorative elements (mg-float-1 orb at right:-80px, the marquee
 * track at width:max-content, hero ambient gradients) live outside the
 * normal flow and on mobile push the document past 100vw, causing horizontal
 * scroll. Belt-and-suspenders: clip on root + body, plus an explicit
 * overflow:hidden safety net on .v3-hero. */
html, body { overflow-x: clip; }
.v3-hero { overflow: visible; }
/* Hero can no longer clip vertically since the crown leitmotif floats outside
   its bounds. Horizontal overflow is still caught by html/body overflow-x:clip. */

/* ============ V3 CROWN LEITMOTIV ============
 * Crown rendered into a FIXED layer that sits behind the editorial type. JS
 * (motion.js) drives --crown-tx, --crown-ty, --crown-rot, --crown-scale based
 * on document scroll progress so the heraldic anchor travels through every
 * section instead of being a static logo. */
.v3-hero-crown {
  position: fixed;
  top: 14vh;
  right: 5vw;
  z-index: 2;
  pointer-events: none;
  opacity: 0.92;
  /* Scroll-driven vars (motion.js):   --crown-tx, --crown-ty, --crown-tz, --crown-rot,
                                        --crown-rx, --crown-ry, --crown-scale
     Cursor parallax vars (crown-fx.js): --crown-cursor-tx, --crown-cursor-ty
     3D tilt vars (crown-fx.js):         --crown-tilt-x, --crown-tilt-y
     Spring entry var (crown-fx.js):     --crown-entry-sc
     Glow var (crown-fx.js):             --crown-glow
     NB: scroll perspective (--crown-rx/ry) is additive with cursor tilt so the
     crown changes its 3D pose per section while still responding to the mouse. */
  transform:
    perspective(900px)
    translate3d(
      calc(var(--crown-tx, 0px) + var(--crown-cursor-tx, 0px)),
      calc(var(--crown-ty, 0px) + var(--crown-cursor-ty, 0px)),
      var(--crown-tz, 0px))
    rotateX(calc(var(--crown-rx, 0deg) + var(--crown-tilt-x, 0deg)))
    rotateY(calc(var(--crown-ry, 0deg) + var(--crown-tilt-y, 0deg)))
    rotateZ(var(--crown-rot, 0deg))
    scale(calc(var(--crown-scale, 1) * var(--crown-entry-sc, 1)));
  filter: drop-shadow(0 0 var(--crown-glow, 6px) rgba(196,147,63,0.45));
  transition: opacity 0.5s ease;
  will-change: transform, filter, opacity;
}
.v3-hero-crown > div { margin: 0; }
@media (max-width: 900px) {
  /* On phones, drop the fixed positioning — too distracting with limited space */
  .v3-hero-crown { position: absolute; top: 64px; right: -16px; opacity: 0.55; transform: scale(0.55); transform-origin: top right; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-hero-crown { transform: none; }
}

/* ============ V3Hero inline waitlist form ============
 * Replaces the secondary "Vezi panoul" CTA so the headline → action distance
 * is exactly one tap. */
.v3-hero-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  max-width: 560px;
  width: 100%;
}
.v3-hero-form input[type="email"] {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  padding: 16px 20px;
  border: 1px solid var(--brand-gold-line);
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.v3-hero-form input[type="email"]:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 4px rgba(196,147,63,0.18);
}
.v3-hero-form .v3-cta {
  padding: 16px 22px;
  font-size: 16px;
  white-space: nowrap;
}
.v3-hero-form button[disabled] {
  opacity: 0.65;
  cursor: wait;
}
.v3-hero-form-foot {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 4px;
  letter-spacing: 0.005em;
}
.v3-hero-form-err {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #B85a5a;
  margin-top: 4px;
}
.v3-hero-form-ok {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  padding: 16px 20px;
  background: rgba(91,202,138,0.08);
  border: 1px solid rgba(91,202,138,0.32);
  border-radius: 14px;
  max-width: 560px;
}
.v3-hero-form-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  background: #5BCA8A;
  color: #fff;
  border-radius: 50%;
  font-size: 14px; font-weight: 700;
}
@media (max-width: 640px) {
  .v3-hero-form { grid-template-columns: 1fr; }
  .v3-hero-form .v3-cta { justify-content: center; }
}

/* ============ ULBS logo contrast fix ============
 * /logos/ulbs.png is designed for a dark surface (the "UNIVERSITATEA LUCIAN
 * BLAGA DIN SIBIU" wordmark is white). On the cream alma-mater card the
 * text is invisible. Give the ULBS image its own navy backdrop so it shows
 * as intended — scoped so other monochrome logos aren't affected.
 * Covers both surfaces: V3Founder embed on / (.v3-founder-alma-row) AND
 * the full /fondator page (.fz-alma-logos). */
.v3-founder-alma-row img[src$="ulbs.png"],
.v3-founder-alma-row img[alt*="ULBS"],
.v3-founder-alma-row img[alt*="Lucian Blaga"],
.fz-alma-logos img[src$="ulbs.png"],
.fz-alma-logos img[alt*="ULBS"],
.fz-alma-logos img[alt*="Lucian Blaga"] {
  background: #1B3A5C;
  padding: 8px 14px;
  border-radius: 6px;
  max-height: 48px !important;
  max-width: 180px !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: 0 2px 8px rgba(27,58,92,0.15);
}
[data-theme="dark"] .v3-founder-alma-row img[src$="ulbs.png"],
[data-theme="dark"] .fz-alma-logos img[src$="ulbs.png"] {
  /* Card is already dark in dark mode; remove the extra patch. */
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* ============ V3Manifest layout fix ============
 * Bundle's CSS had .v3-manifest-tag as inline-flex and .v3-manifest-h as
 * inline-block. With text-align:center on parent, the two inline-display
 * elements baseline-aligned on the same line, causing the huge h2 to overlap
 * the tag pill (h2 visually rendered above the tag, in reverse DOM order).
 * Switch the container to flex-column-center; that gives each child its own
 * vertical row, restores correct order (tag → h2 → sub → actions → foot),
 * and lets the h2 keep its shrink-to-fit width via align-self:center. */
.v3-manifest .v3-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
}
.v3-manifest-tag,
.v3-manifest-h,
.v3-manifest-sub,
.v3-manifest-actions,
.v3-manifest-foot { align-self: center !important; }
.v3-manifest-foot {
  /* foot is a 4-col grid that needs to be full-width-but-capped */
  width: 100%;
  max-width: 980px;
}
.v3-manifest-h {
  /* Reduce the bundle's display:144px clamp on phones — was overflowing
     and squashing the heading. Also restore proper block flow. */
  display: block !important;
  width: auto;
  /* Restrained heading — was 144px max which dominated the section */
  font-size: clamp(40px, 7vw, 108px) !important;
  margin-bottom: 32px !important;
}
.v3-manifest-tag {
  /* Make the tag pill more prominent so it reads as a clear "what you get" badge */
  font-size: 12px !important;
  padding: 9px 18px !important;
  margin-bottom: 32px !important;
}
@media (max-width: 600px) {
  .v3-manifest { padding: 88px 0 80px; }
  .v3-manifest-tag { margin-bottom: 24px !important; }
  .v3-manifest-h   { margin-bottom: 22px !important; font-size: clamp(36px, 11vw, 64px) !important; }
  .v3-manifest-sub { margin-bottom: 32px; }
  .v3-manifest-actions { margin-bottom: 48px; }
}

/* ============ Eyebrow ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--brand-gold);
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px;
  background: var(--brand-gold); display: inline-block;
}

/* ============ Pulse-dot keyframes (used by trial-eyebrow .pulse,
   v3-matrix .live-dot, v3-manifest-tag .dot, v3-hero-meta .live::before) */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.82); }
}

/* ============ Trial banner — pricing centerpiece ============ */
.trial-card {
  position: relative;
  max-width: 100%;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 56px);
  background:
    radial-gradient(ellipse 90% 60% at 90% 0%, rgba(196,147,63,0.20), transparent 60%),
    linear-gradient(135deg, #0F2236 0%, #1B3A5C 60%, #102942 100%);
  color: #FAF7F0;
  border: 1px solid rgba(196,147,63,0.35);
  overflow: hidden;
  box-shadow: 0 40px 100px -28px rgba(13,27,42,0.55), 0 0 0 1px rgba(196,147,63,0.06);
}
.trial-card::before {
  content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(196,147,63,0.9) 50%, transparent);
}

.trial-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-width: 0;          /* allow tracks to shrink below content min-content */
}
.trial-grid > * { min-width: 0; }   /* fix: columns no longer overflow the card on mobile */
@media (max-width: 800px) { .trial-grid { grid-template-columns: 1fr; gap: 24px; } }

.trial-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(196,147,63,0.16);
  border: 1px solid rgba(196,147,63,0.35);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #E3B765;
  margin-bottom: 22px;
}
.trial-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5BCA8A; box-shadow: 0 0 8px rgba(91,202,138,0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

.trial-h {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500; line-height: 1.05;
  color: #FAF7F0;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.trial-h .gold { color: #E3B765; }

.trial-lede {
  font-size: 17px; line-height: 1.55;
  color: rgba(250,247,240,0.78);
  margin-bottom: 28px;
  max-width: min(50ch, 100%);
  overflow-wrap: break-word;
}

.trial-limits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-width: 0;
  border: 1px solid rgba(196,147,63,0.22);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.18);
}
.trial-limit {
  padding: 16px 16px;
  border-right: 1px solid rgba(196,147,63,0.18);
  text-align: left;
}
.trial-limit:last-child { border-right: none; }
.trial-limit .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(227,183,101,0.65);
  margin-bottom: 6px;
}
.trial-limit .v {
  font-family: 'Crimson Pro', serif;
  font-size: 28px; line-height: 1;
  color: #FAF7F0; font-weight: 500;
  letter-spacing: -0.01em;
}
.trial-limit .v small {
  font-size: 11px; color: rgba(240,230,210,0.55);
  margin-left: 4px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0;
  font-weight: 400;
}
@media (max-width: 600px) {
  .trial-limits { grid-template-columns: 1fr; }
  .trial-limit { border-right: none; border-bottom: 1px solid rgba(196,147,63,0.18); }
  .trial-limit:last-child { border-bottom: none; }
}

.trial-cta-stack {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 28px;
}
.trial-cta-stack .btn-gold {
  padding: 18px 26px;
  font-size: 17px;
  font-weight: 600;
  justify-content: center;
  text-align: center;
}
.trial-cta-foot {
  display: flex; flex-wrap: wrap; gap: 12px 22px;
  font-size: 12.5px; color: rgba(250,247,240,0.55);
}
.trial-cta-foot span { display: inline-flex; align-items: center; gap: 6px; }
.trial-cta-foot .ok { color: #5BCA8A; }

/* ============ Pricing tiers (3-up under the trial card) ============ */
.pricing-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 900px) { .pricing-tiers { grid-template-columns: 1fr; } }

.tier {
  position: relative;
  padding: 28px;
  border: 1px solid var(--brand-gold-line);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.tier:hover { border-color: rgba(196,147,63,0.45); box-shadow: var(--shadow-soft); }
.tier.featured {
  border: 1.5px solid var(--brand-gold);
  background: var(--brand-cream);
  box-shadow: 0 16px 40px -10px rgba(196,147,63,0.18);
}
.tier-name {
  font-family: 'Crimson Pro', serif;
  font-size: 22px; font-weight: 500;
  color: var(--text-primary);
}
.tier-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-faint);
  margin: 4px 0 18px;
}
.tier-price {
  display: flex; align-items: baseline; gap: 4px;
  margin: 0 0 18px;
}
.tier-price .n {
  font-family: 'Crimson Pro', serif;
  font-size: 42px; font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier-price .per {
  font-size: 13px; color: var(--text-muted);
}
.tier ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
  font-size: 13.5px;
  color: var(--text-primary);
}
.tier ul li {
  display: grid; grid-template-columns: 16px 1fr; gap: 9px;
  align-items: start;
}
.tier ul li .tick {
  color: var(--brand-gold); margin-top: 3px;
  flex-shrink: 0;
}

/* ============ Mobile-only fixes for v3 sections ============ */
/* OperationalMatrix bar wraps awkwardly when JOI · 22 MAI · 15:42
   and "4 318 ACȚIUNI AZI" both try to live on one row on phones. */
@media (max-width: 700px) {
  .v3-matrix-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }
  .v3-matrix-meta { gap: 10px; flex-wrap: wrap; }
  .v3-matrix-main { padding: 14px 14px; }
  .v3-matrix-row { grid-template-columns: 56px 22px 1fr auto; gap: 10px; padding: 10px 12px; }
  .v3-matrix-row .time { font-size: 9.5px; }
  .v3-matrix-row .what { font-size: 12px; }
  .v3-matrix-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 16px;
    font-size: 9.5px;
  }
}

/* Capabilities — on phone, force the meta to hide cleanly even when the parent
   grid would have tried to keep a 3rd column. Also slim padding. */
@media (max-width: 800px) {
  .v3-cap-item { grid-template-columns: 48px 1fr !important; padding: 22px 0 !important; }
  .v3-cap-item .v3-cap-item-meta { display: none !important; }
}

/* V3IndustriesTeaser — bottom CTA row stacks on phone */
@media (max-width: 600px) {
  .v3-ind-teaser-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* V3Founder embed (homepage) — keep the portrait tight on phone too */
@media (max-width: 600px) {
  .v3-founder-portrait { max-width: 240px; aspect-ratio: 4/5; margin: 0 auto; }
  .v3-founder-alma-row { gap: 10px; }
  .v3-founder-alma-row img { max-height: 28px; max-width: 90px; }
  .v3-founder-alma-row .degree { font-size: 13px; margin-left: 0; flex-basis: 100%; }
}

/* /fondator full bio page — the .fz-portrait must NOT blow up to full width */
.fz-portrait {
  max-width: 360px;
  aspect-ratio: 4 / 5;
  width: 100%;
}
@media (max-width: 600px) {
  .fz-portrait { max-width: 240px; margin: 0 auto; }
}

/* V3Hero actions on phone — stacking CTAs */
@media (max-width: 600px) {
  .v3-hero-actions { gap: 14px; }
  .v3-cta { padding: 16px 22px; font-size: 16px; }
}

/* ── V3SectionNav — dots laterali pentru navigare între secțiuni ─────────── */
.v3-section-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-end;
}
.v3-section-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.v3-section-nav-label {
  position: absolute;
  right: 20px;
  background: rgba(27,58,92,0.88);
  color: #FAF7F0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(6px);
  animation: v3-snav-fade 0.15s ease;
}
@keyframes v3-snav-fade {
  from { opacity: 0; transform: translateX(4px); }
  to   { opacity: 1; transform: translateX(0); }
}
.v3-section-nav-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(196,147,63,0.4);
  border: 1.5px solid rgba(196,147,63,0.6);
  transition: width 0.25s, height 0.25s, background 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}
.v3-section-nav-dot.active {
  width: 15px;
  height: 15px;
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 4px rgba(196,147,63,0.18);
}
.v3-section-nav-item:hover .v3-section-nav-dot {
  background: rgba(196,147,63,0.7);
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(196,147,63,0.14);
}
@media (max-width: 1100px) {
  .v3-section-nav { display: none; }
}

/* ============ ROI Calculator ============ */
.roi-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--brand-gold-line);
  box-shadow: var(--shadow-lift);
}
@media (max-width: 900px) { .roi-card { grid-template-columns: 1fr; } }

.roi-inputs {
  padding: 40px clamp(28px, 4vw, 44px);
  background: var(--brand-cream);
  display: flex; flex-direction: column;
  gap: 30px;
  border-right: 1px solid var(--brand-gold-line);
}
@media (max-width: 900px) { .roi-inputs { border-right: none; border-bottom: 1px solid var(--brand-gold-line); } }

.roi-slot { display: flex; flex-direction: column; gap: 10px; }
.roi-slot-label { display: flex; justify-content: space-between; align-items: flex-end; }
.roi-slot-foot {
  display: flex; justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.roi-slider {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gold-line);
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
}
.roi-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-gold);
  border: 3px solid var(--brand-cream);
  cursor: grab;
  margin-top: -8px;
  box-shadow: 0 4px 12px rgba(196,147,63,0.4);
  transition: transform 0.15s;
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.roi-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-gold);
  border: 3px solid var(--brand-cream);
  cursor: grab;
  box-shadow: 0 4px 12px rgba(196,147,63,0.4);
}

.roi-output {
  padding: 40px clamp(28px, 4vw, 44px);
  background: linear-gradient(145deg, #0F2236 0%, #1B3A5C 60%, #102942 100%);
  color: #FAF7F0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative; overflow: hidden;
}
.roi-output::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(196,147,63,0.16), transparent 50%);
  pointer-events: none;
}

.roi-output-grid {
  display: flex; align-items: stretch; gap: 0;
  position: relative; z-index: 1;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.roi-out {
  flex: 1; min-width: 110px;
  padding: 6px 0 6px 18px;
}
.roi-out:first-child { padding-left: 0; }
.roi-out.divider {
  flex: 0 0 1px;
  background: rgba(196,147,63,0.22);
  padding: 0;
  min-width: 1px;
  margin: 6px 18px;
}
.roi-out-n {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 500;
  color: #FAF7F0;
  letter-spacing: -0.028em;
  line-height: 1;
  display: inline;
}
.roi-out.highlight .roi-out-n { color: #E3B765; }
.roi-out-u {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(250,247,240,0.55);
  margin-left: 6px;
  font-weight: 500;
  display: inline;
}
.roi-out-l {
  font-size: 12.5px;
  color: rgba(250,247,240,0.55);
  margin-top: 8px;
  line-height: 1.4;
  max-width: 22ch;
}

.roi-foot {
  display: flex; gap: 20px; align-items: center;
  padding-top: 24px;
  border-top: 1px dashed rgba(196,147,63,0.28);
  position: relative; z-index: 1;
  flex-wrap: wrap;
}
.roi-foot-l {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(250,247,240,0.7);
  max-width: 50ch;
}

@media (max-width: 900px) {
  .roi-output-grid { flex-direction: column; gap: 18px; }
  .roi-out { padding: 14px 0; border-bottom: 1px dashed rgba(196,147,63,0.22); }
  .roi-out.divider { display: none; }
  .roi-out:last-child { border-bottom: none; }
}

/* ============ Capabilities section — 6 cards with visuals ============ */
.cap-grid {
  display: flex; flex-direction: column;
  gap: 20px;
}
.cap-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--brand-gold-line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--brand-cream);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s, border-color 0.2s;
}
.cap-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: rgba(196,147,63,0.4);
}
.cap-card.reversed { grid-template-columns: 1fr 1fr; }
.cap-card.reversed .cap-card-body { order: 2; }
.cap-card.reversed .cap-card-vis { order: 1; border-right: 1px solid var(--brand-gold-line); border-left: none; }

.cap-card-body {
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 14px;
  justify-content: center;
}
.cap-card-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--brand-gold); font-weight: 700;
}
.cap-card-h {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500; line-height: 1.15;
  color: var(--text-primary); letter-spacing: -0.015em; margin: 0;
}
.cap-card-d {
  font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0;
}
.cap-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cap-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 600;
  padding: 3px 9px;
  background: var(--brand-gold-soft); color: var(--brand-blue);
  border-radius: 4px; letter-spacing: 0.04em;
}

.cap-card-vis {
  background: linear-gradient(180deg, #0F2236 0%, #0D1B2A 100%);
  border-left: 1px solid var(--brand-gold-line);
  padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 320px; position: relative; overflow: hidden;
}
.cap-card-vis::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(196,147,63,0.08), transparent 50%);
  pointer-events: none;
}

@media (max-width: 800px) {
  .cap-card, .cap-card.reversed { grid-template-columns: 1fr !important; }
  .cap-card.reversed .cap-card-body { order: 1; }
  .cap-card.reversed .cap-card-vis { order: 2; border-right: none; border-left: none; border-top: 1px solid var(--brand-gold-line); }
  .cap-card-vis { border-left: none !important; border-top: 1px solid var(--brand-gold-line); }
}

/* ====== Inner visuals (cv-*) — all on dark surface ====== */
.cv {
  position: relative; z-index: 1;
  color: #F0E6D2; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  display: flex; flex-direction: column; gap: 10px; width: 100%;
}
.cv-head {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.06em;
  color: rgba(227,183,101,0.75); text-transform: uppercase; font-weight: 700;
  margin-bottom: 4px;
}
.cv-dot { width: 6px; height: 6px; border-radius: 50%; background: #5BCA8A; box-shadow: 0 0 6px rgba(91,202,138,0.6); }
.cv-dot.wait { background: #E3B765; box-shadow: 0 0 6px rgba(227,183,101,0.7); }

.cv-msg {
  max-width: 84%; padding: 9px 13px; border-radius: 14px;
  font-size: 13px; line-height: 1.45;
}
.cv-msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563C5 0%, #1E4D9C 100%);
  color: #FAF7F0; border-radius: 14px 14px 4px 14px; font-weight: 500;
}
.cv-msg.client {
  background: rgba(255,255,255,0.94); color: #1B3A5C;
  border-radius: 14px 14px 14px 4px;
}
.cv-msg.agent {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(196,147,63,0.18);
  border-radius: 14px 14px 14px 4px; font-size: 12.5px;
}
.cv-msg .muted {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(240,230,210,0.6); display: inline-block; margin-top: 4px;
}

/* approval visual */
.cv-card {
  background: rgba(0,0,0,0.28); border: 1px solid rgba(227,183,101,0.32);
  border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.cv-card-title {
  font-size: 13.5px; font-weight: 700; color: #FAF7F0;
  padding-bottom: 8px; border-bottom: 1px dashed rgba(227,183,101,0.22);
}
.cv-card-row {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: rgba(240,230,210,0.7);
}
.cv-card-row span:first-child {
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 10px; color: rgba(240,230,210,0.45);
}
.cv-card-row .ok { color: #5BCA8A; font-weight: 600; }
.cv-approve-btns { display: flex; gap: 6px; margin-top: 4px; }
.cvb {
  flex: 1; padding: 9px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 8px; border: 1px solid rgba(240,230,210,0.18);
  background: rgba(240,230,210,0.06); color: rgba(250,247,240,0.85);
  cursor: pointer; transition: all 0.15s;
}
.cvb.ok { background: rgba(91,202,138,0.16); color: #5BCA8A; border-color: rgba(91,202,138,0.4); }
.cvb.no { background: rgba(220,90,90,0.10); color: #E07A7A; border-color: rgba(220,90,90,0.3); }
.cvb:hover { transform: translateY(-1px); }

/* pipeline visual */
.cv-pipe-flow { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.cv-pipe-step {
  padding: 7px 11px; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.02em; border: 1px solid transparent;
  display: flex; align-items: center; gap: 6px;
}
.cv-pipe-step.done { background: rgba(91,202,138,0.10); color: #5BCA8A; border-color: rgba(91,202,138,0.22); }
.cv-pipe-step.current {
  background: rgba(227,183,101,0.16); color: #E3B765; border-color: rgba(227,183,101,0.42);
  box-shadow: 0 0 16px rgba(227,183,101,0.16);
  animation: pl-glow 1.6s ease-in-out infinite;
}
.cv-pipe-step.pending { background: transparent; color: rgba(240,230,210,0.35); border-color: rgba(240,230,210,0.12); }
@keyframes pl-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(227,183,101,0.16); }
  50%       { box-shadow: 0 0 28px rgba(227,183,101,0.36); }
}
.cv-pipe-arrow { text-align: center; color: rgba(240,230,210,0.25); font-size: 12px; line-height: 1; }

/* project visual */
.cv-progress {
  background: rgba(0,0,0,0.22); border: 1px solid rgba(196,147,63,0.18);
  border-radius: 8px; padding: 10px 12px;
}
.cv-progress-bar { height: 6px; background: rgba(240,230,210,0.10); border-radius: 999px; overflow: hidden; }
.cv-progress-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #C4933F 0%, #E3B765 100%);
  border-radius: 999px;
}
.cv-progress-l { margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(240,230,210,0.65); letter-spacing: 0.04em; }
.cv-milestones { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.cv-milestones li {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; letter-spacing: 0.02em;
}
.cv-milestones li.done { color: #5BCA8A; }
.cv-milestones li.current { color: #E3B765; }
.cv-milestones li.pending { color: rgba(240,230,210,0.35); }
.cv-project-foot {
  padding: 9px 12px; background: rgba(220,90,90,0.10);
  border: 1px solid rgba(220,90,90,0.22); border-radius: 8px;
  font-size: 11.5px; color: #E07A7A;
}
.cv-project-foot strong { color: #FAF7F0; font-weight: 600; }

/* memory visual */
.cv-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: rgba(0,0,0,0.28);
  border: 1px solid rgba(196,147,63,0.32); border-radius: 10px;
}
.cv-search-icon { font-size: 12px; opacity: 0.7; }
.cv-search-q { font-size: 13px; color: #FAF7F0; font-style: italic; }
.cv-mem-cards { display: flex; flex-direction: column; gap: 6px; }
.cv-mem-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(196,147,63,0.18);
  border-left: 2px solid var(--brand-gold); border-radius: 6px; padding: 8px 12px;
}
.cv-mem-card.muted { opacity: 0.55; border-left-color: rgba(196,147,63,0.32); }
.cv-mem-meta { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.08em; color: rgba(227,183,101,0.7); font-weight: 700; margin-bottom: 3px; }
.cv-mem-text { font-size: 11.5px; color: rgba(240,230,210,0.85); line-height: 1.4; }
.cv-mem-link { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(240,230,210,0.4); margin-top: 4px; }
.cv-mem-foot { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; color: rgba(240,230,210,0.4); text-align: right; }

/* customer visual */
.cv-customer-handoff {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  padding: 8px 12px; background: rgba(227,183,101,0.08);
  border: 1px solid rgba(227,183,101,0.32); border-radius: 8px;
  font-size: 11px; color: #E3B765;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em;
}

/* dark mode */
[data-theme="dark"] .cap-card { background: rgba(255,255,255,0.025); }
[data-theme="dark"] .cap-tag { background: rgba(227,183,101,0.14); color: var(--brand-gold); }
