/* =============================================================
   home-console.css — "Now you can see it" product showcase
   + self-hosted vs cloud / pricing. Uses site tokens from marvis.css.
   ============================================================= */

/* ---------- SHOWCASE / scrollytelling ---------- */
.see {
  padding-top: clamp(36px, 5vw, 64px);
  max-width: min(1360px, 94vw);
}
.see .section-header { max-width: 760px; }
.see-stage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px, 2.6vw, 44px);
  margin-top: clamp(28px, 4vw, 48px);
}

/* frame column stretches to the (tall) steps column, giving the sticky frame
   travel. The frame is a classic 4:3, the text sits in the remaining third. */
.see-frame-col { position: relative; }
.see-frame {
  position: sticky;
  top: 72px;
}
.see-window {
  border-radius: 14px;
  overflow: hidden;
  background: hsl(36 20% 90%);
  border: 1px solid rgba(28, 22, 16, 0.16);
  box-shadow: var(--shadow-deep);
}
.see-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: hsl(36 18% 87%);
  border-bottom: 1px solid rgba(28, 22, 16, 0.09);
}
.see-dots { display: flex; gap: 7px; align-items: center; }
.see-dots span { width: 11px; height: 11px; border-radius: 50%; display: block; }
.see-dots span:nth-child(1) { background: #e8765f; }
.see-dots span:nth-child(2) { background: #e0b24a; }
.see-dots span:nth-child(3) { background: #5bb84f; }
.see-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--pir-text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.see-title .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 hsl(var(--pir-secondary-bright) / 0.6);
  animation: see-pulse 2.6s ease-in-out infinite;
}
@keyframes see-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.see-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: hsl(36 22% 94%);
  overflow: hidden;
}
.see-screen iframe {
  position: absolute;
  top: 0; left: 0;
  width: 147.06%;
  height: 147.06%;
  border: 0;
  pointer-events: none;
  transform: scale(0.68);
  transform-origin: top left;
  transition: opacity 240ms ease;
}
.see-screen.is-switching iframe { opacity: 0.5; transition: opacity 140ms ease; }

.see-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.see-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--marvis-line);
  color: var(--pir-text-tertiary);
  background: transparent;
  cursor: pointer;
  transition: all 140ms ease;
}
.see-tab:hover { border-color: var(--marvis-line-strong); color: var(--pir-text-secondary); }
.see-tab.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}

/* the scroll steps (right third, always visible) */
.see-steps { display: flex; flex-direction: column; padding-bottom: clamp(140px, 24vh, 300px); }
.see-step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  opacity: 0.34;
  transform: translateY(4px);
  transition: opacity 360ms ease, transform 360ms ease;
}
.see-step.is-active { opacity: 1; transform: none; }
.see-step__n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.see-step__n::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
  opacity: 0.4;
  transition: opacity 360ms ease, width 360ms ease;
}
.see-step.is-active .see-step__n::before { opacity: 1; width: 40px; }
.see-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--pir-text-primary);
  text-wrap: balance;
}
.see-step h3 em {
  font-style: normal;
  color: var(--accent);
}
.see-step h3 .g { color: var(--green); }
.see-step p {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--pir-text-secondary);
  margin: 0 0 14px;
  max-width: 38ch;
}
.see-step p strong { color: var(--pir-text-primary); font-weight: 600; }
.see-step__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--pir-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.see-step__tag b { color: var(--green); font-weight: 600; }
/* static per-screen screenshot: desktop hides it (live frame does the job), mobile shows it */
.see-step__shot { display: none; }

/* hint to scroll, under the frame */
.see-hint {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pir-text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.see-hint__bar { flex: 1; height: 1px; background: var(--marvis-line); }

/* Mobile (<=900px): un-stick. Drop the live frame, each Console screen becomes its
   own stacked block — a static screenshot + that step's text. No iframe, no scroll-sync. */
@media (max-width: 900px) {
  .see { max-width: 100%; }
  .see-stage { display: block; }
  .see-frame-col { display: none; }
  .see-steps { padding-bottom: 0; }
  .see-step {
    min-height: auto;
    opacity: 1;
    transform: none;
    padding: 24px 0 30px;
    border-top: 1px solid var(--marvis-line);
  }
  .see-steps .see-step:first-child { border-top: 0; }
  .see-step h3 { font-size: 1.3rem; }
  .see-step p { max-width: none; }
  .see-step__shot {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 16px;
    border-radius: 10px;
    border: 1px solid var(--marvis-line);
    box-shadow: 0 10px 30px -20px rgba(28, 22, 16, 0.55);
  }
}

/* ---------- SELF-HOSTED vs CLOUD ---------- */
.shc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.shc__card {
  border: 1px solid var(--marvis-line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--cream-warm);
  display: flex;
  flex-direction: column;
}
.shc__card--cloud {
  background: hsl(30 8% 13%);
  border-color: rgba(28,22,16,0.2);
  color: rgba(245,240,232,0.9);
}
.shc__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.shc__card--cloud .shc__eyebrow { color: hsl(18 95% 60%); }
.shc__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.shc__card--cloud .shc__name { color: rgba(245,240,232,0.98); }
.shc__price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--pir-text-tertiary);
  margin-bottom: 16px;
}
.shc__card--cloud .shc__price { color: rgba(245,240,232,0.6); }
.shc__price b { color: var(--pir-text-primary); font-weight: 700; }
.shc__card--cloud .shc__price b { color: hsl(18 95% 62%); }
.shc__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.shc__list li {
  font-size: 0.95rem;
  line-height: 1.4;
  padding-left: 26px;
  position: relative;
  color: var(--pir-text-secondary);
}
.shc__card--cloud .shc__list li { color: rgba(245,240,232,0.82); }
.shc__list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 9px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.shc__card--cloud .shc__list li::before { border-color: var(--green-bright); }
.shc__list li b { color: var(--pir-text-primary); font-weight: 600; }
.shc__card--cloud .shc__list li b { color: #fff; }
.shc__foot { margin-top: auto; }

@media (max-width: 820px) {
  .shc { grid-template-columns: 1fr; }
}

/* ---------- PRICING badge tweaks reused inside tiers ---------- */
.tier-incl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 4px;
}
.tier-incl::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-bright);
}

/* ---------- agent → MCP "calling marvis" indicator (Claude Code style) ---------- */
.mcp-call {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
}
.mcp-call__line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: hsl(var(--pir-accent) / 0.13);
  color: var(--marvis-deep);
  padding: 5px 11px;
  border-radius: 6px;
}
.mcp-call__line .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.mcp-call__line b { color: var(--accent); font-weight: 700; }
.mcp-call__hint { color: var(--marvis-soft); }
.mcp-call__sub {
  margin-top: 5px;
  padding-left: 13px;
  color: var(--marvis-soft);
}

/* ---------- recurring floating CTA ---------- */
.float-cta {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 30px -8px hsl(var(--pir-accent) / 0.5), 0 2px 8px rgba(28,22,16,0.16);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
}
.float-cta.is-visible { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.float-cta:hover { background: var(--accent-hover); }
.float-cta .arrow { transition: transform .15s ease; }
.float-cta:hover .arrow { transform: translateX(3px); }
@media (max-width: 600px) { .float-cta { bottom: 14px; padding: 11px 18px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .float-cta { transition: opacity .25s ease; transform: translateX(-50%); } }

/* ---------- hero: split layout + animated MCP terminal ---------- */
.su-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  text-align: left;
}
.su-hero--split .su-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.su-hero--split .su-hero__h1 { font-size: clamp(1.85rem, 3.3vw, 2.85rem); margin: 0; max-width: 17ch; }
.su-hero--split .su-hero__sub { margin: 0; }
.su-hero--split .su-eyebrow { margin: 0; }
.su-hero--split .su-cta { justify-content: flex-start; }
.su-hero--split .su-strip-line { justify-content: flex-start; }
.su-hero__demo { min-width: 0; width: 100%; }
@media (max-width: 900px) {
  .su-hero--split { grid-template-columns: 1fr; gap: 32px; }
}

.hero-chat {
  border-radius: 14px; overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--marvis-line);
  box-shadow: var(--shadow-deep);
  display: flex; flex-direction: column;
}
.hero-chat__bar { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--marvis-line); background: var(--cream-warm); }
.hero-chat__av { width: 30px; height: 30px; border-radius: 50%; flex: none; background: linear-gradient(135deg, hsl(18 95% 56%), hsl(18 95% 44%)); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); }
.hero-chat__meta { display: flex; flex-direction: column; line-height: 1.25; }
.hero-chat__meta b { font-size: 13px; font-weight: 600; color: var(--marvis-deep); }
.hero-chat__meta i { font-family: var(--font-mono); font-style: normal; font-size: 10.5px; color: var(--marvis-soft); }
.hero-chat__live { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 3px hsl(156 55% 42% / 0.18); }
.hero-chat__body { height: 344px; overflow: hidden; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { display: flex; }
.msg--user { justify-content: flex-end; }
.msg--bot { justify-content: flex-start; }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 15px; font-size: 13.5px; line-height: 1.5; }
.msg--user .bubble { background: hsl(156 52% 40% / 0.22); border: 1px solid hsl(156 45% 42% / 0.28); color: var(--marvis-deep); border-bottom-right-radius: 5px; }
.msg--bot .bubble { background: var(--cream-warm); border: 1px solid var(--marvis-line); color: var(--marvis-mid); border-bottom-left-radius: 5px; }
.tool { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--marvis-mute); background: hsl(18 95% 54% / 0.10); border: 1px solid hsl(18 95% 54% / 0.22); padding: 5px 11px; border-radius: 9px; }
.tool .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.tool b { color: var(--accent); font-weight: 700; }
.bubble.typing { display: inline-flex; gap: 4px; align-items: center; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--marvis-soft); animation: ty 1s infinite; }
.bubble.typing i:nth-child(2){ animation-delay: .15s; }
.bubble.typing i:nth-child(3){ animation-delay: .3s; }
@keyframes ty { 0%,60%,100%{opacity:.3;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }
.kw { padding: 0 5px; border-radius: 4px; font-weight: 600; }
.kw-green { color: var(--green); background: hsl(156 55% 42% / 0.16); }
.kw-acc { color: var(--accent); background: hsl(18 95% 54% / 0.16); }
.kw-warn { color: hsl(38 90% 34%); background: hsl(38 90% 55% / 0.18); }
.kw-info { color: hsl(205 70% 38%); background: hsl(205 70% 55% / 0.16); }

/* pricing: green check marks for balance against the orange */
#tiers .v3-tier__features li::before { color: var(--green); }
#tiers .v3-tier--featured .v3-tier__features li::before { color: var(--green-bright); }
