/* Conversion-focused landing and checkout layer */

/* Flash sale */
.flash-sale {
  position: fixed;
  inset: 0 0 auto;
  z-index: 140;
  color: var(--fg);
  border-bottom: 1px solid oklch(70% 0.12 188 / 0.24);
  background:
    linear-gradient(90deg, transparent 12%, var(--accent-soft) 50%, transparent 88%),
    var(--bg-deep);
}

.flash-sale[hidden] {
  display: none;
}

.flash-sale__inner {
  width: min(82.5rem, calc(100% - 2rem));
  min-height: 3.7rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.4rem;
}

.flash-sale__message {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  white-space: nowrap;
}

.flash-sale__message strong {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
}

.flash-sale__message strong::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.22rem var(--accent-soft);
  animation: sale-pulse 2.4s var(--ease-out) infinite;
}

.flash-sale__message span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
}

.flash-sale__users {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--hair);
  color: var(--fg) !important;
  font-size: 0.74rem !important;
}

.flash-sale__users::before {
  content: '';
  width: 0.38rem;
  height: 0.38rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.18rem var(--accent-soft);
  animation: sale-pulse 2.4s var(--ease-out) infinite;
}

.flash-sale__timer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  min-width: 2.85rem;
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  padding: 0.28rem 0.35rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  color: var(--fg);
  background: var(--bg-raised);
}

.countdown-unit strong {
  color: var(--accent-pale);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1;
}

.countdown-unit small {
  color: var(--faint-text);
  font-family: var(--sans);
  font-size: 0.48rem;
  font-weight: 600;
}

.flash-sale__cta {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--accent-pale);
  border-radius: var(--radius-md);
  color: var(--bg-deep);
  background: var(--accent-pale);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  transition:
    transform 140ms var(--ease-lift),
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.flash-sale__cta:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.flash-sale__cta:active {
  transform: scale(0.97);
}

.flash-sale__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes sale-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0.18rem var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 0.38rem transparent;
  }
}

body.sale-banner-open {
  padding-top: var(--sale-banner-h, 3.7rem);
}

body.sale-banner-open .corner-actions {
  top: calc(1.35rem + var(--sale-banner-h, 3.7rem));
}

body.sale-banner-open .corner-mark {
  top: calc(1.5rem + var(--sale-banner-h, 3.7rem));
}

body.sale-banner-open .status {
  top: calc(3.55rem + var(--sale-banner-h, 3.7rem));
}

/* Sale code dialog — desktop and mobile */
.mobile-promo {
  display: none;
}

.mobile-promo[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: min(calc(100% - 2rem), 28.5rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  color: var(--fg);
  background: transparent;
  opacity: 0;
  transform: translateY(0.7rem) scale(0.985);
  transition:
    opacity 180ms ease,
    transform 280ms var(--ease-lift);
}

.mobile-promo.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-promo::backdrop {
  background: oklch(2% 0.004 188 / 0);
  backdrop-filter: blur(0);
  transition:
    background 220ms ease,
    backdrop-filter 280ms var(--ease-out);
}

.mobile-promo.is-visible::backdrop {
  background: oklch(2% 0.004 188 / 0.72);
  backdrop-filter: blur(7px);
}

.mobile-promo__surface {
  position: relative;
  max-height: calc(100dvh - 2rem);
  padding: 1.65rem 1.6rem 1.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid oklch(70% 0.12 188 / 0.32);
  border-radius: 12px;
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 42%),
    oklch(10% 0.012 188 / 0.96);
  backdrop-filter: blur(18px);
}

.mobile-promo__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: var(--bg-raised);
  font-family: var(--sans);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    transform 120ms var(--ease-lift);
}

.mobile-promo__close:active {
  transform: scale(0.94);
}

.mobile-promo__close:focus-visible,
.mobile-promo__code button:focus-visible,
.mobile-promo__plans:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mobile-promo__heading {
  padding-right: 2.75rem;
}

.mobile-promo__heading > p:first-child {
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-promo__heading h2 {
  max-width: 13ch;
  color: var(--fg);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mobile-promo__heading h2 span {
  color: var(--accent);
  font-style: italic;
}

.mobile-promo__users {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.4;
}

.mobile-promo__users strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
}

.mobile-promo__users strong::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.18rem var(--accent-soft);
  animation: sale-pulse 2.4s var(--ease-out) infinite;
}

.mobile-promo__heading #mobilePromoDescription {
  max-width: 34ch;
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.mobile-promo__code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  margin-top: 1.25rem;
  padding: 0.85rem 0.85rem 0.85rem 1rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
}

.mobile-promo__code > span {
  color: var(--faint-text);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-promo__code code {
  align-self: end;
  overflow: hidden;
  color: var(--accent-pale);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-promo__code button {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 5.75rem;
  min-height: 3.25rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--accent-pale);
  border-radius: var(--radius-md);
  color: var(--bg-deep);
  background: var(--accent-pale);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 120ms var(--ease-lift);
}

.mobile-promo__code button:active {
  transform: scale(0.96);
}

.mobile-promo__code button.is-copied {
  border-color: var(--accent);
  background: var(--accent);
}

.mobile-promo__status {
  min-height: 1.1rem;
  margin: 0.45rem 0 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.4;
}

.mobile-promo__plans {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--accent-pale);
  background: var(--accent-soft);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 120ms var(--ease-lift);
}

.mobile-promo__plans:active {
  transform: scale(0.98);
}

.mobile-promo__secure {
  margin-top: 0.75rem;
  color: var(--faint-text);
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 760px) {
  .mobile-promo[open] {
    inset: auto auto max(0.75rem, env(safe-area-inset-bottom));
    left: 50%;
    display: block;
    width: min(calc(100% - 1.5rem), 28rem);
    max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top));
    transform: translate(-50%, 1rem) scale(0.985);
  }

  .mobile-promo.is-visible {
    transform: translate(-50%, 0) scale(1);
  }
}

/* Stronger first screen */
.hero {
  min-height: calc(100vh - var(--sale-banner-h, 0px));
  padding-top: clamp(6.5rem, 11vh, 8.5rem);
}

.headline {
  max-width: 15ch;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.headline em {
  color: var(--accent);
  animation: none;
}

.sub {
  max-width: 54ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 1.8rem;
}

.hero-actions .hero-cta.primary {
  min-height: 3.35rem;
  padding-inline: 1.55rem;
  color: var(--bg);
  background: var(--accent-pale);
  border-color: var(--accent-pale);
  font-size: 0.68rem;
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.hero-cta-secondary:hover {
  color: var(--fg);
}

.hero-eyebrow {
  margin-bottom: 1.15rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: fade 1s ease 0.2s both;
}

.hero-cta-ghost {
  min-height: 3.35rem;
  padding-inline: 1.35rem;
  border-color: oklch(70% 0.12 188 / 0.34);
  color: var(--accent-pale);
  background: var(--accent-soft);
  font-size: 0.64rem;
}

.hero-cta-ghost:hover {
  color: var(--accent-pale);
  background: oklch(70% 0.12 188 / 0.2);
}

.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.hero-trust span::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* Pricing conversion details */
.plan-card.is-featured {
  border-color: oklch(70% 0.12 188 / 0.62);
  background:
    linear-gradient(180deg, oklch(70% 0.12 188 / 0.12), transparent 34%),
    var(--bg-raised);
  transform: translateY(-0.55rem);
}

.plan-badge {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  animation: none;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.22rem;
}

.sale-original {
  order: -1;
  margin-right: 0.2rem;
  color: var(--faint-text);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.sale-price-note {
  width: 100%;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
}

.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
}

.pricing-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pricing-trust span::before {
  content: '';
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--green);
}

.plan-comparison {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: 1px solid var(--hair);
  background: rgba(244, 241, 234, 0.018);
}

.plan-comparison__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--hair);
}

.plan-comparison__head h3 {
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.plan-comparison__head p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
}

.plan-comparison table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.72rem;
}

.plan-comparison th,
.plan-comparison td {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--hair);
  text-align: left;
}

.plan-comparison th {
  color: var(--muted);
  font-weight: 500;
}

.plan-comparison td {
  color: var(--text);
}

.plan-comparison tbody tr:last-child td {
  border-bottom: 0;
}

.plan-comparison .recommended {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Streamlined checkout */
.checkout-dialog {
  width: min(590px, 100%);
}

.checkout-quick-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.8rem 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--hair);
  background: rgba(244, 241, 234, 0.025);
}

.checkout-quick-summary strong {
  display: block;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.checkout-quick-summary span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
}

.checkout-customize {
  margin-bottom: 0.85rem;
  border: 1px solid var(--hair);
}

.checkout-customize summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.checkout-customize summary::-webkit-details-marker {
  display: none;
}

.checkout-customize summary::after {
  content: '+';
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1rem;
}

.checkout-customize[open] summary::after {
  content: '−';
}

.checkout-customize .checkout-panel {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--hair);
}

.checkout-error.is-visible {
  padding: 0.65rem 0.75rem;
  border: 1px solid oklch(72% 0.16 25 / 0.35);
  background: oklch(72% 0.16 25 / 0.09);
}

.checkout-sale-line strong {
  color: var(--green);
}

.vs-section .section-label,
.landing-minimal #deploy .section-label {
  margin-bottom: 1.25rem;
  font-size: 0.6rem;
  text-align: left;
}

.vs-head h2 {
  color: var(--fg);
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.vs-head h2 em {
  color: var(--accent);
  font-style: italic;
}

.vs-head p {
  margin-top: 0.85rem;
  max-width: 52ch;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
  text-wrap: pretty;
}

/* Aevix versus a blank cloud VM */
.vs-section {
  padding-block: clamp(3rem, 6vw, 4.75rem);
  border-top: 1px solid var(--hair);
}

.vs-head {
  max-width: 44rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.vs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hair);
  background: oklch(78% 0 0 / 0.018);
}

.vs-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.82rem;
}

.vs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vs-table th,
.vs-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

.vs-table thead th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vs-table tbody th {
  width: 12rem;
  color: var(--faint-text);
  font-size: 0.78rem;
  font-weight: 500;
}

.vs-table td {
  color: var(--muted);
}

.vs-table .is-aevix {
  color: var(--fg);
  background: var(--accent-soft);
}

.vs-table thead .is-aevix {
  color: var(--accent);
}

.vs-table tbody tr:last-child th,
.vs-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 680px) {
  /* The table scrolls sideways here, so fade the edge it continues past */
  .vs-table-wrap {
    mask-image: linear-gradient(90deg, #000 92%, transparent);
  }

  .vs-table {
    min-width: 30rem;
    font-size: 0.78rem;
  }

  .vs-table th,
  .vs-table td {
    padding: 0.72rem 0.85rem;
  }

  .vs-table tbody th {
    width: 7.5rem;
  }
}

/* Load and render efficiency */
.users-proof,
.vs-section,
.ticker-bar,
.marquee-wrap,
.plans-section,
#dashboard-preview,
#deploy,
#workflow,
#different,
#faq,
footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/* High-signal landing page */
.landing-minimal .spotlight,
.landing-minimal .status,
.landing-minimal .rack-grid,
.landing-minimal .hero-foot,
.landing-minimal .ticker-bar,
.landing-minimal .marquee-wrap,
.landing-minimal .plan-comparison,
.landing-minimal .buyer-proof-section,
.landing-minimal #dashboard-preview,
.landing-minimal #workflow,
.landing-minimal .payment-strip,
.landing-minimal .foot-bottom-icons {
  display: none;
}

.landing-minimal .hero {
  min-height: calc(100svh - var(--sale-banner-h, 0px));
  padding-bottom: clamp(4rem, 9vh, 7rem);
}

.landing-minimal .hero::before {
  animation: none;
  opacity: 0.72;
}

.landing-minimal .aevix-logo--hero {
  margin-bottom: 2.25rem;
}

.landing-minimal .sub {
  max-width: 48ch;
}

.landing-minimal .users-proof {
  padding-block: clamp(2.75rem, 5vw, 4rem);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.landing-minimal .users-proof::before,
.landing-minimal .users-proof-orbit {
  display: none;
}

.landing-minimal .users-proof-stat {
  min-height: 0;
  gap: 0.55rem;
}

.landing-minimal .users-proof-count {
  font-size: clamp(3.4rem, 8vw, 5rem);
}

.landing-minimal .users-proof-side {
  gap: 0.8rem;
  padding-block: 0;
}

.landing-minimal #deploy {
  padding-block: clamp(3.25rem, 6vw, 5rem);
  scroll-margin-top: calc(var(--sale-banner-h, 0px) + 1rem);
}

/* Image launcher */
.launcher-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--hair);
}

.launcher-intro h2 {
  color: var(--fg);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.launcher-intro h2 em {
  color: var(--accent);
  font-style: italic;
}

.launcher-copy {
  max-width: 54ch;
  margin-top: 0.8rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.launcher-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--faint-text);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launcher-hint::before {
  content: '';
  width: 0.34rem;
  height: 0.34rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  animation: sale-pulse 2.6s var(--ease-out) infinite;
}

.launcher {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.launcher-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  background: var(--hair);
  overflow: hidden;
}

.launcher-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.85rem;
  border: 0;
  color: var(--muted);
  background: var(--bg);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition:
    color 200ms ease,
    background 240ms var(--ease-out),
    padding-left 240ms var(--ease-out);
}

.launcher-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 260ms var(--ease-lift);
}

.launcher-item:hover,
.launcher-item:focus-visible {
  color: var(--fg);
  background: var(--bg-raised);
}

.launcher-item.is-active {
  color: var(--fg);
  padding-left: 1.05rem;
  background:
    linear-gradient(90deg, var(--accent-soft), transparent 70%),
    var(--bg-raised);
}

.launcher-item.is-active::before {
  transform: scaleY(1);
}

.launcher-item-code {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
}

.launcher-item-name {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launcher-item-time {
  color: var(--faint-text);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.launcher-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.95rem;
}

.launcher-window {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid oklch(70% 0.12 188 / 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 0%, oklch(70% 0.12 188 / 0.16), transparent 62%),
    var(--bg-deep);
  box-shadow: 0 24px 60px -40px oklch(2% 0.004 188 / 0.9);
}

.launcher-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.3rem;
  padding: 0 0.95rem;
  border-bottom: 1px solid oklch(70% 0.12 188 / 0.16);
  background: oklch(70% 0.12 188 / 0.06);
}

.launcher-light {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: oklch(78% 0 0 / 0.16);
}

.launcher-light:nth-child(3) {
  background: oklch(70% 0.12 188 / 0.55);
}

.launcher-path {
  margin-left: 0.4rem;
  color: var(--faint-text);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.launcher-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.launcher-state::before {
  content: '';
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: currentColor;
  animation: sale-pulse 1.6s var(--ease-out) infinite;
}

.is-ready .launcher-state {
  color: var(--green);
}

.is-ready .launcher-state::before {
  animation: none;
}

.launcher-screen {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 13.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
}

.launcher-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(oklch(78% 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(78% 0 0 / 0.025) 1px, transparent 1px);
  background-size: 100% 26px, 26px 100%;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent);
}

.launcher-cmd {
  position: relative;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
}

.launcher-sigil {
  margin-right: 0.45rem;
  color: var(--accent);
}

.launcher-cmd b {
  color: var(--accent-pale);
  font-weight: 500;
}

.launcher-log {
  position: relative;
  display: grid;
  gap: 0.38rem;
  margin: 0.15rem 0 0;
  list-style: none;
}

.launcher-log li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.71rem;
  line-height: 1.5;
  opacity: 0;
}

.launcher-log li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.is-running .launcher-log li {
  animation: launcher-line 300ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 260ms);
}

/* Cursor trails the last line until the build reports ready */
.is-running:not(.is-ready) .launcher-log li:last-child::after {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.95em;
  margin-left: 0.3rem;
  vertical-align: -0.14em;
  background: var(--accent-pale);
  animation: launcher-blink 1s steps(2, start) infinite;
}

@keyframes launcher-line {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes launcher-blink {
  50% {
    opacity: 0;
  }
}

/* Progress and result sit at the base of the window, like a real boot log */
.launcher-meter {
  position: relative;
  height: 2px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 2px;
  background: oklch(78% 0 0 / 0.1);
}

.launcher-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition-property: width;
  transition-timing-function: linear;
}

.launcher-ready {
  color: var(--faint-text);
  font-family: var(--mono);
  font-size: 0.68rem;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 260ms ease,
    transform 300ms var(--ease-lift);
}

.is-ready .launcher-ready {
  color: var(--text);
  opacity: 1;
  transform: translateY(0);
}

.launcher-ready b {
  color: var(--green);
  font-weight: 500;
}

.launcher-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.launcher-desc {
  max-width: 48ch;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.6;
}

.launcher-stack {
  margin-top: 0.3rem;
  color: var(--faint-text);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.launcher-cta {
  min-height: 2.7rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid oklch(70% 0.12 188 / 0.34);
  border-radius: var(--radius-md);
  color: var(--accent-pale);
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    transform 180ms var(--ease-lift);
}

.launcher-cta::after {
  content: '→';
  margin-left: 0.55rem;
}

.launcher-cta:hover {
  color: var(--bg);
  border-color: var(--accent-pale);
  background: var(--accent-pale);
  transform: translateY(-2px);
}

.landing-minimal .plans-section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  scroll-margin-top: calc(var(--sale-banner-h, 0px) + 1rem);
}

.landing-minimal .plans-label,
.landing-minimal .plan-region-note {
  display: none;
}

.landing-minimal .plans-head {
  margin-bottom: 1.75rem;
}

.landing-minimal .plans-intro {
  max-width: 42rem;
}

.landing-minimal .plans-intro h2 {
  font-size: clamp(2.15rem, 4.6vw, 3.25rem);
}

.landing-minimal .plans-controls {
  margin-bottom: 1.75rem;
}

.landing-minimal .plans-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 76rem;
  margin-inline: auto;
  gap: 1rem;
}

.landing-minimal .nano-offer {
  margin-bottom: 1rem;
}

.landing-minimal .plan-specs li:nth-child(n + 5) {
  display: none;
}

.landing-minimal .pricing-trust span:nth-child(3),
.landing-minimal .pricing-trust span:nth-child(5) {
  display: none;
}

.landing-minimal .plans-footnote {
  max-width: 66ch;
  margin: 1.5rem auto 0;
}

.landing-minimal #faq {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.landing-minimal #faq .faq-list {
  max-width: 54rem;
}

.landing-minimal footer {
  padding-block: 2.5rem;
}

.landing-minimal .foot-cols {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2rem;
}

.landing-minimal .foot-cols > div:nth-child(2),
.landing-minimal .foot-cols > div:nth-child(3),
.landing-minimal .foot-col-links li:nth-child(n + 4) {
  display: none;
}

.landing-minimal .foot-brand-line {
  max-width: 28ch;
}

.landing-minimal .foot-bottom {
  margin-top: 2rem;
}

@media (max-width: 1000px) {
  .landing-minimal .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 46rem;
  }

  .landing-minimal .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Below this the image list becomes a swipeable strip above the terminal */
@media (max-width: 880px) {
  .launcher {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .launcher-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .launcher-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(10.5rem, 44%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }

  .launcher-list::-webkit-scrollbar {
    display: none;
  }

  .launcher-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.7rem 0.85rem 0.75rem;
    scroll-snap-align: start;
  }

  .launcher-item.is-active {
    padding-left: 0.95rem;
  }

  .launcher-item-name {
    white-space: normal;
  }

  .launcher-item-time {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .flash-sale__inner {
    width: calc(100% - 1rem);
    min-height: 0;
    padding: 0.55rem 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.6rem;
  }

  .flash-sale__message {
    display: block;
    white-space: normal;
  }

  .flash-sale__message strong,
  .flash-sale__message span {
    display: block;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .flash-sale__message .flash-sale__users {
    display: none;
  }

  .flash-sale__timer {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .countdown-unit {
    flex: 1;
    min-width: 0;
  }

  .flash-sale__cta {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
  }

  body.sale-banner-open .corner-actions {
    top: calc(0.65rem + var(--sale-banner-h, 6.8rem));
  }

  .hero {
    padding-inline: 1.25rem;
    padding-top: 8.5rem;
  }

  .headline {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .hero-cta.primary {
    width: 100%;
  }

  .hero-cta-secondary,
  .hero-actions .hero-cta-ghost {
    width: 100%;
    justify-content: center;
  }

  .vs-head {
    text-align: center;
  }

  .vs-section .section-label,
  .landing-minimal #deploy .section-label {
    text-align: center;
  }

  .vs-head p {
    margin-inline: auto;
  }

  .launcher-detail {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .launcher-cta {
    justify-content: center;
  }

  .plan-card.is-featured {
    transform: none;
  }

  .plan-comparison__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-quick-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-minimal .hero {
    min-height: calc(100svh - var(--sale-banner-h, 0px));
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .landing-minimal .aevix-logo--hero {
    margin-bottom: 1.75rem;
  }

  .landing-minimal .hero-trust {
    gap: 0.45rem 0.7rem;
  }

  .landing-minimal .plans-grid {
    grid-template-columns: 1fr;
    max-width: 34rem;
  }

  .landing-minimal .users-proof {
    padding-block: 2.5rem;
  }

  .landing-minimal .users-proof-stat {
    min-height: 0;
  }

  .landing-minimal .users-proof-side {
    padding-inline: 0;
    text-align: center;
  }

  .landing-minimal .foot-cols {
    grid-template-columns: 1fr;
  }

  .landing-minimal .foot-cols > div:nth-child(4) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flash-sale__message strong::before,
  .flash-sale__users::before,
  .mobile-promo__users strong::before,
  .launcher-hint::before,
  .launcher-state::before,
  .is-running:not(.is-ready) .launcher-log li:last-child::after {
    animation: none;
  }

  .launcher-log li,
  .is-running .launcher-log li {
    animation: none;
    opacity: 1;
  }

  .flash-sale__cta,
  .mobile-promo,
  .mobile-promo::backdrop,
  .mobile-promo__close,
  .mobile-promo__code button,
  .mobile-promo__plans {
    transition: none;
  }
}

/* Sale percentage: soft glow plus a card flip every few seconds, everywhere it appears. */
.sale-pct {
  display: inline-block;
  color: inherit;
  backface-visibility: visible;
  animation:
    salePctGlow 2.4s ease-in-out infinite,
    salePctFlip 4.5s cubic-bezier(0.65, 0, 0.35, 1) 1s infinite;
  will-change: transform, text-shadow;
}

@keyframes salePctGlow {
  0%, 100% { text-shadow: 0 0 6px color-mix(in srgb, currentColor 35%, transparent); }
  50% {
    text-shadow:
      0 0 10px color-mix(in srgb, currentColor 75%, transparent),
      0 0 24px color-mix(in srgb, currentColor 45%, transparent);
  }
}

@keyframes salePctFlip {
  0%, 78% { transform: perspective(500px) rotateY(0deg); }
  100% { transform: perspective(500px) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sale-pct {
    animation: none;
    text-shadow: 0 0 10px color-mix(in srgb, currentColor 55%, transparent);
  }
}
