/* ============================================
   Revive Live product page
   ============================================ */

.page-live {
  --live-amber: #d97706;
  --live-section-bg: linear-gradient(to bottom, #fff, var(--color-emerald-50) 48%, #fff);
}

/* ---------- Hero ---------- */
.live-hero {
  position: relative;
  min-height: clamp(520px, 92svh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.live-hero .slider__bg {
  object-position: center top;
}

.live-hero__beacon {
  position: absolute;
  z-index: 3;
  left: 39%;
  top: 44%;
  pointer-events: none;
}

.live-hero__beacon-chip {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: var(--color-primary-500, #22c55e);
  background: rgba(11, 21, 16, 0.78);
  border: 1px solid rgba(0, 156, 67, 0.4);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.live-hero__beacon-stem {
  position: absolute;
  bottom: 14px;
  left: 6px;
  width: 1.5px;
  height: 52px;
  background: linear-gradient(180deg, var(--color-primary), rgba(0, 156, 67, 0));
  transform: translateY(-52px);
}

.live-hero__beacon-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 156, 67, 0.35);
}

.live-hero__beacon-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(0, 156, 67, 0.55);
  animation: live-beacon-pulse 2.6s ease-out infinite;
}

@keyframes live-beacon-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

.live-hero .slider__content {
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}

.live-hero__badge {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 156, 67, 0.16);
  border: 1px solid rgba(0, 156, 67, 0.35);
  color: #bbf7d0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--space-lg);
}

/* ---------- Shared pills (section-header__eyebrow) ---------- */
.page-live .section-header__eyebrow {
  width: fit-content;
  max-width: 100%;
}

.page-live .live-plan__body .section-header__eyebrow,
.page-live .live-safety .section-header__eyebrow {
  margin-bottom: 14px;
}

.page-live .live-road > .container > .section-header {
  margin-bottom: 0;
}

.page-live .live-road > .container > .section-header .section-header__eyebrow {
  margin-bottom: 24px;
}

.live-section--dark,
.live-section--mist {
  padding-top: var(--section-stack-padding-y);
  padding-bottom: var(--section-stack-padding-y);
  background: var(--live-section-bg);
  color: var(--color-text);
}

.live-section--dark .section-header__subtitle,
.live-section--mist .section-header__subtitle {
  color: var(--color-text-secondary);
}

/* ---------- Problem ---------- */
.live-problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 54px;
}

@media (min-width: 768px) {
  .live-problem__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.live-problem-card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.live-problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.live-problem-card__title {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

.live-problem-card__status {
  display: block;
  margin: 10px 0 12px;
  color: var(--live-amber);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-problem-card__text {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* ---------- Platform scrolly ---------- */
.live-platform__head {
  max-width: 680px;
}

/* ---------- Platform plan cards ---------- */
.live-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: 44px;
}

@media (min-width: 992px) {
  .live-plans {
    grid-template-columns: 1fr 1.18fr 1fr;
    align-items: stretch;
    gap: clamp(18px, 2.2vw, 32px);
  }
}

.live-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(30, 42, 48, 0.09);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  isolation: isolate;
  cursor: zoom-in;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease;
}

.live-plan:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.live-plan:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary-200);
  box-shadow: 0 30px 60px -18px rgba(0, 156, 67, 0.28);
}

.live-plan__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-emerald-50), #fff);
  border-bottom: 1px solid rgba(30, 42, 48, 0.07);
}

/* Soft depth gradient over the screenshot */
.live-plan__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 45, 20, 0.16), transparent 42%);
  opacity: 0.65;
  transition: opacity 0.45s ease;
}

.live-plan:hover .live-plan__media::after {
  opacity: 0.25;
}

.live-plan__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.01);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.live-plan:hover .live-plan__media img {
  transform: scale(1.07);
}

.live-plan__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
}

.live-plan__body .section-header__eyebrow {
  margin-bottom: 12px;
}

.live-plan__title {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  transition: color 0.35s ease;
}

.live-plan:hover .live-plan__title {
  color: var(--color-primary-dark);
}

.live-plan__body p {
  max-width: 44ch;
  margin: 0;
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.live-plan__body p + p {
  margin-top: 12px;
}

/* Featured (centre) card — larger, like a highlighted pricing plan */
.live-plan--featured {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(150deg, var(--color-primary), var(--color-emerald-300) 55%, var(--color-primary-500)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 28px 64px -20px rgba(0, 156, 67, 0.4);
}

/* Glow ring behind the featured card */
.live-plan--featured::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse at top, rgba(0, 156, 67, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.live-plan--featured:hover::after {
  opacity: 1;
}

@media (min-width: 992px) {
  /* Sides share one height (align-items: stretch); the centre card
     pops above and below the row so it reads as taller — without
     scaling, so every card keeps the same font size. */
  .live-plan--featured {
    margin-block: -28px;
    z-index: 2;
  }
}

/* Lightbox */
.live-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3.5vw, 44px);
  background: rgba(11, 21, 16, 0.92);
  cursor: zoom-out;
}

.live-lightbox.is-open {
  display: flex;
}

.live-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.live-lightbox__image {
  display: block;
  min-height: 0;
  max-width: 100%;
  /* Reserve space for the caption so the image always fits the screen */
  max-height: calc(100% - 40px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-2xl);
  cursor: default;
}

.live-lightbox__caption {
  flex: 0 0 auto;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--font-size-xs);
  text-align: center;
}

/* ---------- Fleet tabs ---------- */
.live-fleet__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 42px;
}

.live-fleet__tab {
  padding: 12px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.live-fleet__tab:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.live-fleet__tab[aria-selected="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.live-fleet__panel[hidden] {
  display: none;
}

.live-fleet__panel h3 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

.live-fleet__panel-lede {
  max-width: 58ch;
  margin: 16px 0 36px;
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.live-fleet__benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .live-fleet__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.live-fleet__benefit {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.live-fleet__benefit h4 {
  margin: 0 0 8px;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

.live-fleet__benefit p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.live-safety {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: 64px;
  overflow: hidden;
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-emerald-50), rgba(255, 255, 255, 0.96));
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
  .live-safety {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.live-safety__content {
  min-width: 0;
  padding: clamp(34px, 4vw, 54px);
}

.live-safety h3 {
  max-width: 20ch;
  margin: 16px 0 14px;
  color: var(--color-text);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: var(--font-weight-bold);
}

.live-safety p {
  max-width: 62ch;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* Image half — bleeds to the card edges so text + screenshot read as
   one split section rather than a floating image card. */
.live-safety__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  cursor: zoom-in;
  padding: clamp(20px, 2.5vw, 34px);
  border-top: 1px solid rgba(30, 42, 48, 0.08);
  background: #fff;
}

@media (min-width: 900px) {
  .live-safety__media {
    border-top: 0;
    border-left: 1px solid rgba(30, 42, 48, 0.08);
  }
}

.live-safety__media:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.live-safety__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.live-safety__media:hover img {
  transform: scale(1.04);
}

.live-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.live-chips span {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.04em;
}

/* ---------- Road ahead ---------- */
.live-road {
  padding-bottom: 0;
  background: var(--live-section-bg);
  color: var(--color-text);
}

.live-horizon {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--color-border);
}

.live-horizon:first-of-type {
  border-top: none;
}

@media (min-width: 768px) {
  .live-horizon {
    grid-template-columns: minmax(280px, 7fr) minmax(0, 5fr);
    gap: clamp(20px, 4vw, 60px);
    padding: 52px 0;
  }
}

.live-horizon__word {
  font-size: clamp(3rem, 8.5vw, 6.6rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: -0.03em;
}

.live-horizon--connect .live-horizon__word {
  color: var(--color-primary);
}

.live-horizon--optimise .live-horizon__word {
  color: var(--color-text);
}

.live-horizon--predict .live-horizon__word {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
}

.live-horizon__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-horizon__status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: currentColor;
}

.live-horizon--optimise .live-horizon__status {
  color: var(--color-text-secondary);
}

.live-horizon--predict .live-horizon__status {
  color: var(--color-text-muted);
}

.live-horizon--predict .live-horizon__status::before {
  background: transparent;
  border: 1.5px solid currentColor;
}

.live-horizon__line {
  margin: 0 0 14px;
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
}

.live-road__honesty {
  margin: 6px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.live-road__honesty strong {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.page-live .features {
  background: var(--live-section-bg);
}

.live-road .cta-section {
  padding-top: 0;
  background: transparent;
}

.live-road .cta-card {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

/* ---------- Responsive / motion ---------- */
@media (max-width: 767px) {
  .live-hero .slider__bg {
    object-position: center top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-hero__beacon-dot::after {
    animation: none;
  }

  .live-plan,
  .live-plan--featured,
  .live-plan:hover,
  .live-plan--featured:hover {
    transform: none;
  }

  .live-plan:hover .live-plan__media img {
    transform: none;
  }

  .live-safety__media:hover img {
    transform: none;
  }

  .live-fleet__panel[hidden] {
    display: block;
  }
}
