/* ============================================================
   Shield Index — vibrancy layer
   Loads AFTER platform.css. Enhancement only — lifts the existing
   Soft Glass components toward the premium feel of the pipeline
   section. All token-driven; no new colours.
   ============================================================ */

/* ── Feature-icon tiles: gradient-framed white well holding glossy art ──
   The white icon background blends into the white inner well — no edges. */
.mkt-feature-icon {
  width: 60px !important; height: 60px !important; padding: 2.5px !important;
  border-radius: 15px !important; border: none !important; overflow: hidden;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-accent) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 18px rgba(37, 99, 235, 0.22),
    0 1px 2px rgba(11, 36, 71, 0.10) !important;
  transition: transform var(--motion-base) var(--ease-out),
              box-shadow var(--motion-base) var(--ease-out);
}
.mkt-feature-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.mkt-feature:hover .mkt-feature-icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 26px rgba(37, 99, 235, 0.30),
    0 0 0 4px var(--brand-accent-soft) !important;
}

/* Tool-card icons: same gradient-framed well */
.tool-card-icon {
  width: 50px !important; height: 50px !important; padding: 2.5px !important;
  border-radius: 14px !important; overflow: hidden;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-accent) 100%) !important;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.20), inset 0 1px 0 rgba(255,255,255,.4) !important;
}
.tool-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; }

/* Tool-card icons keep their cursor-glow; art sits in the gradient well above. */

/* Header logo: cap height so the new robust lockup sits balanced in the bar */
.mkt-header .mkt-brand img { height: 38px; width: auto; }

/* ── Buttons: primary CTA → glossy blue→cyan gradient ──────── */
.btn-primary {
  background-image: linear-gradient(135deg, var(--brand) 0%, var(--brand-accent) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 16px rgba(37, 99, 235, 0.28) !important;
}
.btn-primary:hover {
  background-color: var(--brand-hover);
  background-image: linear-gradient(135deg, var(--brand-hover) 0%, var(--brand-accent) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px rgba(37, 99, 235, 0.36) !important;
}
/* Secondary/ghost: pick up the cyan accent on hover so it relates to the ramp */
.btn-secondary:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

/* ============================================================
   HERO — transforming video (desktop 16:9 → phone 9:16)
   ============================================================ */
.hv-right { position: relative; height: 540px; }
.hv-frame { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease-spring); }
.hv-tag { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); color: var(--ink-soft); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hv-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); }

.vplayer { width: 100%; max-width: 560px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); background: #fff; box-shadow: var(--glass-vibrant-highlight), 0 18px 44px rgba(37,99,235,.20); }
.vbar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface-card); border-bottom: 1px solid var(--border); }
.vbar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.vstage { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(155deg, #E1ECFC 0%, #DDF5FA 100%); overflow: hidden; }

.phone { width: 268px; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #0B2447, #2563EB);
  box-shadow: 0 24px 50px rgba(11,36,71,.30), inset 0 1px 0 rgba(255,255,255,.3); }
.phone-screen { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 9 / 16; background: linear-gradient(160deg, #E1ECFC 0%, #DDF5FA 100%); }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; border-radius: 999px; background: #0B2447; z-index: 4; }
.vvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: 3; background: #0B2447; }
.hv-sound { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: rgba(11,36,71,.72); color: #fff; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px -6px rgba(11,36,71,.55); transition: opacity .2s, transform .2s; }
.hv-sound:hover { transform: translateX(-50%) translateY(-1px); }
.hv-sound svg { width: 18px; height: 18px; display: block; }
.hv-sound .hv-sound-on { display: none; }
.hv-sound.is-on .hv-sound-on { display: block; }
.hv-sound.is-on .hv-sound-off { display: none; }
.hv-sound.is-on .hv-sound-label { display: none; }
.hv-sound.is-on { padding: 9px; gap: 0; }

.vmock { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; gap: 9px; opacity: .5; }
.phone-screen .vmock { padding-top: 42px; }
.vmock-row { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.78); border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; }
.vmock-pill { font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.vmock-pill.c { background: var(--sev-critical-fill); color: var(--sev-critical-text); }
.vmock-pill.h { background: var(--sev-high-fill); color: var(--sev-high-text); }
.vmock-pill.m { background: var(--sev-medium-fill); color: var(--sev-medium-text); }
.vmock-line { height: 6px; border-radius: 4px; background: rgba(11,36,71,.16); flex: 1; }

.vplay { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent)); border: none; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 34px rgba(37,99,235,.45), inset 0 1px 0 rgba(255,255,255,.4);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.vplay::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); opacity: .55; }
.vplay svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.is-playing .vplay { opacity: 0; transform: scale(.6); pointer-events: none; }

.vprogress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(11,36,71,.12); z-index: 3; }
.vprogress::before { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand), var(--brand-accent)); }
.is-playing .vprogress::before { transform: scaleX(1); transition: transform var(--vdur, 4.5s) linear; }

.vcap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: var(--text-xs); color: var(--ink-muted); font-weight: 500; z-index: 2; }
.is-playing .vcap { opacity: 0; }

.hv-replay { position: absolute; top: 12px; right: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.9); border: 1px solid var(--border); color: var(--brand); font: 600 12px var(--font-body);
  padding: 6px 11px; border-radius: 999px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out); }
.hv-right.is-mobile .hv-replay { opacity: 1; pointer-events: auto; }
.hv-replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .hv-right { height: 500px; margin-top: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-frame { transition: none; }
  .is-playing .vprogress::before { transition: none; transform: scaleX(1); }
}

/* ── "Set up in a morning" step numerals → gradient, with a hairline rule ──
   Targets the inline-styled numeral divs in that section. */
.vibe-steps .vibe-step-num {
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ============================================================
   PIPELINE SECTION  (Option C — vertical rail, in-page)
   ============================================================ */
.hiw {
  position: relative; border-radius: var(--radius-2xl);
  border: var(--glass-vibrant-border); background: var(--gradient-surface);
  box-shadow: var(--glass-vibrant-highlight), var(--glass-vibrant-shadow);
  padding: var(--space-8) var(--space-8) var(--space-8); overflow: hidden;
}
.hiw-eyebrow {
  font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-accent); font-weight: 600; margin: 0 0 var(--space-2);
}
.hiw-h {
  font-size: var(--text-3xl); line-height: 1.12; font-weight: 600; color: var(--ink-strong);
  margin: 0 0 var(--space-7); max-width: 20ch; text-wrap: balance; letter-spacing: -0.01em;
}
.hiw-flow { position: relative; display: flex; flex-direction: column; gap: var(--space-4); max-width: 580px; }
.hiw-rail { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--border); z-index: 0; }
.hiw-railfill {
  position: absolute; inset: 0; border-radius: 2px; transform-origin: top; transform: scaleY(1);
  background: linear-gradient(180deg, var(--brand), var(--brand-accent));
}
.hiw-comet-track { position: absolute; inset: 0; }
.hiw-comet {
  position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: var(--radius-full); opacity: 0;
  background: radial-gradient(circle at 40% 35%, #fff 0%, var(--brand-accent) 45%, var(--brand) 100%);
  box-shadow: 0 0 0 5px rgba(8,145,178,.14), 0 0 14px 3px rgba(37,99,235,.55);
}
.hiw-row { display: grid; grid-template-columns: 48px 84px 1fr; align-items: center; column-gap: var(--space-5); position: relative; z-index: 1; }
.hiw-node {
  width: 40px; height: 40px; border-radius: var(--radius-full); justify-self: center;
  background: var(--surface-inset); border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 2;
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--brand);
}
.hiw-tile {
  width: 84px; height: 84px; border-radius: 22px; padding: 2.5px; flex: none;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-accent) 100%);
  box-shadow: 0 6px 16px rgba(37,99,235,.18), 0 1px 2px rgba(11,36,71,.10);
}
.hiw-tile-in {
  width: 100%; height: 100%; border-radius: 19px; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 2px rgba(11,36,71,.06);
}
.hiw-tile-in img { width: 84%; height: 84%; object-fit: contain; display: block; }
.hiw-text { display: flex; flex-direction: column; gap: 3px; }
.hiw-t { font-size: var(--text-lg); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.2; }
.hiw-s { font-size: var(--text-base); color: var(--ink-muted); margin: 0; line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) {
  .hiw-railfill { transform: scaleY(0); }
  .hiw.in-view .hiw-railfill { animation: hiwDraw 3s var(--ease-out) forwards; }
  .hiw.in-view .hiw-comet-track { animation: hiwTravel 3s var(--ease-out) forwards; }
  .hiw.in-view .hiw-comet { animation: hiwComet 3s var(--ease-out) forwards; }
  .hiw.in-view .hiw-node { animation: hiwNode 3s var(--ease-out) both; animation-delay: calc(var(--i) * 0.32s); }
  .hiw.in-view .hiw-tile { animation: hiwTile 3s var(--ease-out) both; animation-delay: calc(var(--i) * 0.32s); }
  @keyframes hiwDraw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes hiwTravel { from { transform: translateY(0); } to { transform: translateY(calc(100% - 14px)); } }
  @keyframes hiwComet { 0% { opacity: 0; } 5% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes hiwNode {
    0%,18% { border-color: var(--border-strong); color: var(--brand); background: var(--surface-inset); box-shadow: none; }
    30% { border-color: var(--brand); color: #fff; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-accent-soft), 0 4px 12px rgba(37,99,235,.3); }
    52%,100% { border-color: var(--brand); color: var(--brand); background: var(--surface-inset); box-shadow: 0 0 0 3px var(--brand-accent-soft); }
  }
  @keyframes hiwTile { 0%,18% { transform: translateY(0); } 30% { transform: translateY(-4px); } 52%,100% { transform: translateY(0); } }
}

@media (max-width: 760px) {
  .hiw { padding: var(--space-6) var(--space-4); }
  .hiw-h { font-size: var(--text-2xl); margin-bottom: var(--space-6); }
  .hiw-flow { gap: var(--space-3); }
  .hiw-row { grid-template-columns: 40px 60px 1fr; column-gap: var(--space-3); }
  .hiw-rail { left: 19px; }
  .hiw-node { width: 36px; height: 36px; font-size: var(--text-xs); }
  .hiw-tile { width: 60px; height: 60px; border-radius: 16px; }
  .hiw-tile-in { border-radius: 13px; }
  .hiw-t { font-size: var(--text-base); }
  .hiw-s { font-size: var(--text-sm); }
}

/* ============================================================
   COMMS BAND — integrations marquee (constant horizontal scroll)
   ============================================================ */
.comms-band { padding: var(--space-8) 0 var(--space-9); overflow: hidden; }
.comms-head { max-width: var(--max-reading); margin: 0 auto var(--space-6); padding: 0 var(--space-6); text-align: center; }
.comms-eyebrow { font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-accent); font-weight: 600; margin: 0 0 var(--space-2); }
.comms-h { font-size: var(--text-3xl); font-weight: 600; color: var(--ink-strong); letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 var(--space-3); }
.comms-sub { font-size: var(--text-lg); color: var(--ink-muted); line-height: 1.55; margin: 0 auto; max-width: 56ch; }
.comms-marquee { position: relative; width: 100%; overflow: hidden; padding: var(--space-3) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.comms-track { display: flex; width: max-content; will-change: transform; animation: commsScroll 34s linear infinite; }
.comms-marquee:hover .comms-track { animation-play-state: paused; }
.comms-item { display: flex; align-items: center; gap: 10px; margin-right: var(--space-4); padding: 13px 22px; white-space: nowrap;
  background: var(--surface-inset); border: 1px solid var(--border); border-radius: var(--radius-full);
  box-shadow: var(--glass-regular-highlight), 0 4px 12px rgba(37,99,235,.07); }
.comms-item img { width: 26px; height: 26px; display: block; flex: none; }
.comms-item span { font-size: var(--text-base); font-weight: 600; color: var(--ink); }
.comms-foot { text-align: center; font-size: var(--text-sm); color: var(--ink-soft); margin: var(--space-6) auto 0; padding: 0 var(--space-6); }
@keyframes commsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .comms-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; max-width: var(--max-marketing); margin: 0 auto; row-gap: var(--space-3); }
}
@media (max-width: 760px) {
  .comms-h { font-size: var(--text-2xl); }
  .comms-sub { font-size: var(--text-base); }
  .comms-item { padding: 11px 18px; }
}

/* ============================================================
   FEATURES — demo slots (image / video placeholders)
   ============================================================ */
.feat-slot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong);
  background: #fff; box-shadow: var(--glass-vibrant-highlight), 0 18px 44px rgba(37,99,235,.16); }
.feat-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface-card); border-bottom: 1px solid var(--border); }
.feat-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.feat-stage { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(155deg, #E1ECFC 0%, #DDF5FA 100%); display: flex; align-items: center; justify-content: center; }
.feat-play { width: 72px; height: 72px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent)); box-shadow: 0 12px 34px rgba(37,99,235,.45), inset 0 1px 0 rgba(255,255,255,.4); }
.feat-play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); opacity: .5; }
.feat-play svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.feat-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-soft); padding: var(--space-5); text-align: center; }
.feat-drop svg { width: 38px; height: 38px; fill: none; stroke: var(--brand-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat-drop span { font-size: var(--text-sm); font-weight: 500; color: var(--ink-muted); }
.feat-label { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: var(--text-xs); color: var(--ink-muted); font-weight: 500; padding: 0 var(--space-4); }

/* ============================================================
   FLOATING CTA — persistent trial prompt on every site page
   Injected into <body> by site.js. Glass bar pinned to the
   bottom of the viewport, always visible.
   ============================================================ */
.mkt-cta-float {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: var(--z-sticky);
  width: min(calc(100% - 2 * var(--space-4)), 640px);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px 12px 12px var(--space-5);
  border-radius: var(--radius-2xl);
  background: var(--glass-vibrant-bg);
  -webkit-backdrop-filter: var(--glass-vibrant-blur);
          backdrop-filter: var(--glass-vibrant-blur);
  border: var(--glass-vibrant-border);
  box-shadow: var(--glass-vibrant-highlight), 0 14px 38px rgba(37, 99, 235, 0.24);
}
.mkt-cta-float-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; min-width: 0; }
.mkt-cta-float-copy strong { font-size: var(--text-base); font-weight: 600; color: var(--ink-strong); letter-spacing: -0.01em; }
.mkt-cta-float-copy span { font-size: var(--text-sm); color: var(--ink-muted); }
.mkt-cta-float .btn { margin-left: auto; flex: none; white-space: nowrap; }

/* Reserve space so the footer's legal line clears the bar at full scroll. */
.mkt-footer { padding-bottom: 128px; }

/* Step aside while the mobile nav drawer is open. */
body.mkt-menu-open .mkt-cta-float { opacity: 0; pointer-events: none; transform: translate(-50%, 12px); }

@media (prefers-reduced-motion: no-preference) {
  .mkt-cta-float { animation: ctaFloatIn 440ms var(--ease-spring) both; animation-delay: 550ms; }
  @keyframes ctaFloatIn {
    from { opacity: 0; transform: translate(-50%, 18px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
  }
}

@media (max-width: 620px) {
  .mkt-cta-float {
    width: calc(100% - 2 * var(--space-3));
    bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    padding: 10px 10px 10px var(--space-4);
    gap: var(--space-3);
  }
  .mkt-cta-float-copy span { display: none; }
  .mkt-cta-float-copy strong { font-size: var(--text-sm); }
}
