/* Public MQL Lock page (/mqllock).
 *
 * Built on theme-dark.css, auth.css (aurora backdrop, gold button, ghost
 * button, --auth-* tokens) and contact.css (the contact cards of the final
 * section); this file adds the page layout, the sections, the plans, the
 * comparison table, the videos, the "Buy" dialog and two kinds of motion:
 *
 * 1. The hero loop: a decorative mock of the panel and a chart, animated
 *    with CSS keyframes only. Every part shares one 12-second cycle and
 *    shows itself in its own time window, so the four steps play in order.
 * 2. Scroll reveal: sections rise in when they enter the viewport. The
 *    hidden start state applies only after mql-lock-page.js has put
 *    `mql-reveal` on <html>, so without JavaScript everything is visible.
 *
 * Only transform and opacity are animated, sizes are reserved up front (no
 * layout shift), and under prefers-reduced-motion nothing loops or moves.
 * Mobile first; sizes are fluid (clamp) up to wide monitors.
 */

.mql-body {
  --mql-max: clamp(64rem, 50rem + 24vw, 84rem);
  --mql-surface: #111219;
  --mql-surface-raised: #171822;
  --mql-section-gap: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --mql-card-pad: clamp(1.15rem, 0.95rem + 0.7vw, 1.75rem);
  --mql-fs-h2: clamp(1.625rem, 1.15rem + 1.8vw, 2.75rem);
  --mql-fs-h3: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  --mql-fs-lead: clamp(1rem, 0.92rem + 0.3vw, 1.2rem);
  --mql-loop: 12s;
}

/* Native smooth scrolling for the in-page links, only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.mql-body) {
    scroll-behavior: smooth;
  }
}

.mql-main {
  overflow-x: clip;
}

.mql-container {
  width: 100%;
  max-width: var(--mql-max);
  margin-inline: auto;
  padding-inline: var(--site-header-gutter);
}

/* Anchored sections must not hide under the sticky header. */
.mql-main [id] {
  scroll-margin-top: calc(var(--site-header-height) + 1rem);
}

/* ------------------------------------------------------------------ Hero */

.mql-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2rem, 1.25rem + 3.5vw, 6rem) clamp(3rem, 2rem + 4vw, 7rem);
  border-bottom: 1px solid var(--auth-line);
}

.mql-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1.5rem + 3vw, 5rem);
}

@media (min-width: 1024px) {
  .mql-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.mql-hero__copy {
  display: grid;
  justify-items: start;
  gap: clamp(0.9rem, 0.7rem + 0.6vw, 1.4rem);
  min-width: 0;
}

.mql-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--auth-subtle);
  font-size: var(--auth-fs-small);
}

.mql-breadcrumb__list li + li::before {
  content: "/";
  margin-inline-end: 0.4rem;
  color: var(--auth-line-strong);
}

.mql-breadcrumb__list a {
  color: var(--auth-muted);
}

.mql-breadcrumb__list a:hover {
  color: var(--auth-gold);
}

/* The h1 and the lead are the LCP elements: they are never animated. */
.mql-hero__title {
  max-width: 20ch;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  font-weight: var(--font-weight-brand);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mql-hero__lead {
  max-width: 40rem;
  color: var(--auth-muted);
  font-size: var(--mql-fs-lead);
  line-height: 1.65;
  text-wrap: pretty;
}

.mql-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The shared gold and ghost buttons, sized as page links rather than form buttons. */
.mql-button {
  width: auto;
  min-height: 48px;
  padding-inline: 1.5rem;
  text-decoration: none;
}

.mql-button:hover {
  text-decoration: none;
}

.mql-button--ghost {
  min-height: 48px;
  font-size: var(--auth-fs-body);
}

.mql-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--auth-muted);
  font-size: var(--auth-fs-small);
}

.mql-hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.mql-hero__fact-icon {
  width: 1rem;
  height: 1rem;
  color: var(--auth-success);
}

/* ------------------------------------------------------ Hero animation */

.mql-demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

/* Panel and chart side by side wherever their column is wide enough: below
   1024px the hero is one column; from 1280px its right half is wide again. */
@media (min-width: 560px) and (max-width: 1023.98px), (min-width: 1280px) {
  .mql-demo {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.mql-demo__panel,
.mql-demo__chart {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius-sm);
  background-color: var(--mql-surface);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.95);
}

.mql-demo__bar,
.mql-demo__chart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--auth-line);
  color: var(--auth-subtle);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.mql-demo__dots {
  display: inline-flex;
  gap: 0.3rem;
}

.mql-demo__dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: var(--auth-line-strong);
}

.mql-demo__list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0.65rem;
  list-style: none;
}

.mql-demo__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  background-color: var(--mql-surface-raised);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
}

.mql-demo__acct {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.mql-demo__tag {
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
  background-color: var(--auth-gold-soft);
  color: var(--auth-gold);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-bold);
}

.mql-demo__pill {
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background-color: rgba(94, 224, 160, 0.14);
  color: var(--auth-success);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-semibold);
}

.mql-demo__pill--new {
  background-color: var(--auth-gold-soft);
  color: var(--auth-gold);
}

.mql-demo__row--new {
  border-color: rgba(235, 196, 42, 0.45);
}

.mql-demo__chart {
  aspect-ratio: 4 / 3;
}

.mql-demo__chart-acct {
  color: var(--auth-gold);
  font-family: var(--font-mono);
}

.mql-demo__candles {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.75rem 0.75rem 0;
}

.mql-demo__line {
  fill: none;
  stroke: rgba(143, 180, 255, 0.55);
  stroke-width: 2;
  stroke-linejoin: round;
}

.mql-demo__wicks line {
  stroke: var(--auth-line-strong);
  stroke-width: 1.5;
}

.mql-demo__bodies rect {
  fill: var(--auth-success);
  rx: 2;
}

.mql-demo__bodies rect.is-down {
  fill: var(--auth-error);
}

.mql-demo__ea,
.mql-demo__toast {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.mql-demo__ea svg,
.mql-demo__toast svg {
  width: 0.9rem;
  height: 0.9rem;
}

.mql-demo__ea {
  top: 2.6rem;
  right: 0.75rem;
  border: 1px solid rgba(94, 224, 160, 0.4);
  background-color: rgba(10, 30, 22, 0.92);
  color: var(--auth-success);
}

.mql-demo__toast {
  left: 50%;
  bottom: 0.9rem;
  border: 1px solid rgba(255, 128, 128, 0.45);
  background-color: rgba(40, 12, 14, 0.94);
  color: var(--auth-error);
  transform: translateX(-50%);
  /* Static state (no motion): the refusal is not shown. */
  opacity: 0;
}

/* The four step captions share one line; each is shown in its own window. */
.mql-demo__steps {
  position: relative;
  grid-column: 1 / -1;
  min-height: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--auth-muted);
  font-size: var(--auth-fs-small);
  text-align: center;
}

.mql-demo__step {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Static state (no motion): the account is in the list and the EA runs. */
.mql-demo__step--2 {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .mql-demo__row--new {
    animation: mql-row var(--mql-loop) var(--auth-ease) infinite;
  }

  .mql-demo__ea {
    animation: mql-ea var(--mql-loop) var(--auth-ease) infinite;
  }

  .mql-demo__toast {
    animation: mql-toast var(--mql-loop) var(--auth-ease) infinite;
  }

  .mql-demo__line {
    animation: mql-line var(--mql-loop) ease-in-out infinite;
  }

  .mql-demo__step--1 { animation: mql-step-1 var(--mql-loop) linear infinite; }
  .mql-demo__step--2 { animation: mql-step-2 var(--mql-loop) linear infinite; }
  .mql-demo__step--3 { animation: mql-step-3 var(--mql-loop) linear infinite; }
  .mql-demo__step--4 { animation: mql-step-4 var(--mql-loop) linear infinite; }

  /* mql-lock-page.js pauses the loop while the hero is off screen. */
  .mql-hero.is-offscreen .mql-demo * {
    animation-play-state: paused;
  }
}

/* 0-8%: not there yet; 8-14%: added; 48-54%: removed; hidden until the loop restarts. */
@keyframes mql-row {
  0%, 8% { opacity: 0; transform: translateX(-14px); }
  14%, 48% { opacity: 1; transform: none; }
  54%, 100% { opacity: 0; transform: translateX(14px); }
}

/* The EA starts after the account was added and disappears after the refusal. */
@keyframes mql-ea {
  0%, 18% { opacity: 0; transform: translateY(-6px); }
  23%, 70% { opacity: 1; transform: none; }
  76%, 100% { opacity: 0; transform: scale(0.85); }
}

/* "You are not allowed." appears after the account was removed. */
@keyframes mql-toast {
  0%, 58% { opacity: 0; transform: translate(-50%, 10px); }
  63%, 88% { opacity: 1; transform: translate(-50%, 0); }
  94%, 100% { opacity: 0; transform: translate(-50%, 0); }
}

/* The price line drifts while the EA is active (transform only). */
@keyframes mql-line {
  0%, 20% { transform: translateY(0); }
  45% { transform: translateY(-4px); }
  70%, 100% { transform: translateY(0); }
}

@keyframes mql-step-1 {
  0%, 6% { opacity: 0; }
  9%, 19% { opacity: 1; }
  22%, 100% { opacity: 0; }
}

@keyframes mql-step-2 {
  0%, 21% { opacity: 0; }
  24%, 44% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

@keyframes mql-step-3 {
  0%, 46% { opacity: 0; }
  49%, 59% { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes mql-step-4 {
  0%, 61% { opacity: 0; }
  64%, 90% { opacity: 1; }
  93%, 100% { opacity: 0; }
}

/* -------------------------------------------------------------- Sections */

.mql-section {
  padding-block: var(--mql-section-gap);
}

.mql-section--alt {
  border-block: 1px solid var(--auth-line);
  background-color: rgba(255, 255, 255, 0.015);
}

.mql-section__header {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto clamp(1.75rem, 1.25rem + 2vw, 3rem);
  text-align: center;
}

.mql-eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--auth-line);
  border-radius: var(--radius-pill);
  background-color: var(--auth-gold-soft);
  color: var(--auth-gold);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mql-section__title {
  font-family: var(--font-brand);
  font-size: var(--mql-fs-h2);
  font-weight: var(--font-weight-brand);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mql-section__lead {
  color: var(--auth-muted);
  font-size: var(--mql-fs-lead);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- Cards */

.mql-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.85rem, 0.7rem + 0.6vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .mql-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mql-cards--three,
  .mql-cards--features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mql-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-width: 0;
  padding: var(--mql-card-pad);
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background-color: var(--mql-surface);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

/* A soft gold light that fades in on hover (opacity only). */
.mql-card::before,
.mql-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(235, 196, 42, 0.12), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mql-card:hover,
.mql-plan:hover,
.mql-plan:focus-within {
  border-color: var(--auth-line-strong);
}

.mql-card:hover::before,
.mql-plan:hover::before,
.mql-plan:focus-within::before {
  opacity: 1;
}

.mql-card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--auth-gold-strong), var(--auth-gold));
  color: var(--color-brand-contrast);
  box-shadow: 0 10px 30px -12px var(--auth-gold-glow);
}

.mql-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mql-card__title,
.mql-step__title,
.mql-faq__question,
.mql-plan__title {
  position: relative;
  font-family: var(--font-brand);
  font-size: var(--mql-fs-h3);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mql-card__text,
.mql-step__text,
.mql-faq__answer {
  position: relative;
  color: var(--auth-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------------- Steps */

.mql-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.85rem, 0.7rem + 0.6vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

@media (min-width: 640px) {
  .mql-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .mql-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mql-step {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-width: 0;
  padding: var(--mql-card-pad);
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background-color: var(--mql-surface);
}

.mql-step__number {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(235, 196, 42, 0.5);
  border-radius: 50%;
  color: var(--auth-gold);
  font-family: var(--font-brand);
  font-weight: var(--font-weight-brand);
}

/* ------------------------------------------------------------ Comparison */

.mql-compare {
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background-color: var(--mql-surface);
}

.mql-compare__table {
  width: 100%;
  border-collapse: collapse;
}

.mql-compare__table th,
.mql-compare__table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--auth-line);
  text-align: start;
  vertical-align: top;
  line-height: 1.5;
}

.mql-compare__table thead th {
  color: var(--auth-subtle);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mql-compare__table tbody th {
  color: var(--auth-text);
  font-weight: var(--font-weight-semibold);
}

.mql-compare__table td {
  color: var(--auth-muted);
}

.mql-compare__table tbody tr:last-child > * {
  border-bottom: 0;
}

.mql-compare__table .mql-compare__ours {
  background-color: rgba(235, 196, 42, 0.06);
  color: var(--auth-text);
}

.mql-compare__table thead .mql-compare__ours {
  color: var(--auth-gold);
}

/* Phones: each row becomes a small card; the cell labels come from data-label. */
@media (max-width: 719.98px) {
  .mql-compare__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .mql-compare__table,
  .mql-compare__table tbody,
  .mql-compare__table tr,
  .mql-compare__table th,
  .mql-compare__table td {
    display: block;
  }

  .mql-compare__table tbody tr {
    border-bottom: 1px solid var(--auth-line);
  }

  .mql-compare__table tbody tr:last-child {
    border-bottom: 0;
  }

  .mql-compare__table th,
  .mql-compare__table td {
    border-bottom: 0;
    padding: 0.6rem 1rem;
  }

  .mql-compare__table tbody th {
    padding-top: 1rem;
  }

  .mql-compare__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    color: var(--auth-subtle);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mql-compare__table td:last-child {
    padding-bottom: 1rem;
  }
}

/* ---------------------------------------------------------------- Videos */

.mql-videos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 0.8rem + 1vw, 2rem);
}

@media (min-width: 900px) {
  .mql-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mql-videos--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 52rem;
    margin-inline: auto;
  }
}

.mql-video {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
}

/* Reserved 16:9 box: the thumbnail and the player have the same size, so loading the player never moves the page. */
.mql-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background-color: var(--mql-surface);
}

.mql-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Self-made thumbnail: the strict CSP blocks YouTube's own images. */
.mql-video__poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(circle at 30% 20%, rgba(235, 196, 42, 0.22), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(88, 132, 255, 0.2), transparent 55%),
    var(--mql-surface);
  color: var(--auth-text);
  text-decoration: none;
}

.mql-video__poster:hover {
  text-decoration: none;
}

.mql-video__glow {
  position: absolute;
  width: 9rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--auth-gold-glow), transparent 70%);
  opacity: 0.6;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mql-video__play {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(3.75rem, 3rem + 2vw, 5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--auth-gold-strong), var(--auth-gold));
  color: var(--color-brand-contrast);
  box-shadow: 0 16px 40px -14px var(--auth-gold-glow);
  transition: transform var(--transition-normal);
}

.mql-video__play svg {
  width: 42%;
  height: 42%;
  margin-left: 6%;
}

.mql-video__poster:hover .mql-video__play,
.mql-video__poster:focus-visible .mql-video__play {
  transform: scale(1.08);
}

.mql-video__poster:hover .mql-video__glow {
  opacity: 1;
  transform: scale(1.15);
}

.mql-video__poster:focus-visible {
  outline: 3px solid var(--auth-gold);
  outline-offset: -3px;
}

.mql-video__lang {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--auth-line-strong);
  border-radius: var(--radius-pill);
  background-color: rgba(7, 8, 11, 0.7);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mql-video__caption {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  color: var(--auth-muted);
  font-family: var(--font-brand);
  font-weight: var(--font-weight-bold);
}

.mql-video__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--auth-muted);
  font-size: var(--auth-fs-small);
}

.mql-video__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: var(--auth-gold);
  font-weight: var(--font-weight-semibold);
}

.mql-video__link-icon {
  width: 0.95rem;
  height: 0.95rem;
}

/* ----------------------------------------------------------------- Plans */

.mql-plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.85rem, 0.7rem + 0.6vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .mql-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mql-plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* The Enterprise Plan spans the full row under the four timed plans. */
  .mql-plan--enterprise {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 2rem;
  }

  .mql-plan--enterprise .mql-plan__features {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin: 0;
  }

  .mql-plan--enterprise .mql-plan__call {
    grid-row: 1 / span 2;
    grid-column: 3;
  }
}

.mql-plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
  padding: var(--mql-card-pad);
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background-color: var(--mql-surface);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

/* The plan card does not clip (its badge overlaps the top edge), so its hover light follows the corners itself. */
.mql-plan::before {
  border-radius: inherit;
}

.mql-plan--highlight {
  border-color: rgba(235, 196, 42, 0.6);
  background:
    radial-gradient(circle at 100% 0%, rgba(235, 196, 42, 0.16), transparent 55%),
    var(--mql-surface-raised);
  box-shadow: 0 24px 60px -30px var(--auth-gold-glow);
}

/* Sits on the card's top edge, so the highlighted card's rows line up with the others. */
.mql-plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--auth-gold-strong), var(--auth-gold));
  color: var(--color-brand-contrast);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
}

.mql-plan__price {
  position: relative;
  display: grid;
  gap: 0.2rem;
  min-height: 4.25rem;
  align-content: start;
}

.mql-plan__amount {
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 1.45rem + 1vw, 2.375rem);
  font-weight: var(--font-weight-brand);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.mql-plan__amount--ask {
  color: var(--auth-gold);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
}

.mql-plan__period {
  color: var(--auth-subtle);
  font-size: var(--auth-fs-small);
}

.mql-plan__buy,
.mql-plan__call {
  position: relative;
  text-decoration: none;
}

.mql-plan__buy:hover,
.mql-plan__call:hover {
  text-decoration: none;
}

.mql-plan__call {
  justify-content: center;
  min-height: 48px;
}

.mql-plan__features {
  position: relative;
  display: grid;
  gap: 0.55rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--auth-muted);
  font-size: var(--auth-fs-small);
}

.mql-plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.45;
}

.mql-plan__check {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  color: var(--auth-success);
}

/* ------------------------------------------------------------------- FAQ */

.mql-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.85rem, 0.7rem + 0.6vw, 1.25rem);
}

@media (min-width: 900px) {
  .mql-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mql-faq__item {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
  padding: var(--mql-card-pad);
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background-color: var(--mql-surface);
}

/* ------------------------------------------------------------- Final CTA */

.mql-section--cta {
  padding-top: 0;
}

.mql-cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgba(235, 196, 42, 0.35);
  border-radius: var(--auth-radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(235, 196, 42, 0.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(88, 132, 255, 0.16), transparent 50%),
    var(--mql-surface-raised);
  text-align: center;
}

.mql-cta__title {
  font-family: var(--font-brand);
  font-size: var(--mql-fs-h2);
  font-weight: var(--font-weight-brand);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mql-cta__text {
  max-width: 40rem;
  color: var(--auth-muted);
  font-size: var(--mql-fs-lead);
  line-height: 1.6;
}

.mql-cta__actions {
  justify-content: center;
}

/* As many contact cards per row as fit; one or two cards fill the width. */
.mql-contact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: clamp(1rem, 0.8rem + 1vw, 1.75rem);
}

/* ---------------------------------------------------------------- Dialog */

.mql-dialog {
  width: min(calc(100% - 2rem), 30rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--auth-line-strong);
  border-radius: var(--auth-radius);
  background-color: var(--auth-card-solid);
  color: var(--auth-text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
}

.mql-dialog::backdrop {
  background-color: rgba(4, 5, 8, 0.72);
}

.mql-dialog__body {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem) clamp(1.25rem, 1rem + 1vw, 2rem) 0;
}

.mql-dialog__icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--auth-gold-strong), var(--auth-gold));
  color: var(--color-brand-contrast);
}

.mql-dialog__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.mql-dialog__title {
  font-family: var(--font-brand);
  font-size: var(--auth-fs-title);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mql-dialog__text {
  color: var(--auth-muted);
  line-height: 1.6;
}

.mql-dialog__text strong {
  color: var(--auth-text);
}

.mql-dialog__actions {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.mql-dialog__actions .auth-submit,
.mql-dialog__actions .auth-ghost {
  justify-content: center;
  width: 100%;
  min-height: 48px;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .mql-dialog[open] {
    animation: auth-rise 260ms var(--auth-ease) both;
  }
}

/* --------------------------------------------------------- Scroll reveal */

/* Applied only once mql-lock-page.js has marked <html> (and never under
   reduced motion), so the content is visible without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .mql-reveal [data-reveal] {
    transition: opacity 650ms var(--auth-ease), transform 650ms var(--auth-ease),
      border-color var(--transition-normal);
  }

  .mql-reveal [data-reveal]:not(.is-revealed) {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  /* Hover lift of the cards (transform only). */
  .mql-card:hover,
  .mql-plan:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mql-card,
  .mql-plan,
  .mql-card::before,
  .mql-plan::before,
  .mql-video__play,
  .mql-video__glow {
    transition: none;
  }
}

/* ======================================================= /mqllock only
 *
 * The rules above are shared with Home, Services and Store (they load this
 * file too). Everything below applies only to the /mqllock page, whose body
 * carries .mql-lock-page, so those pages keep their exact layout.
 */

/* Below 1024px (one-column hero): panel and chart sit side by side whenever
   both fit (about 12.5rem each), otherwise they stack; in a row both cards
   share the same height. The page class outranks the shared media-query rule
   at every width. */
.mql-lock-page .mql-demo {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  align-items: stretch;
}

/* Desktops (two-column hero): equal columns, and the panel stacked above a
   full-width chart, so the mock is about as tall as the copy beside it
   instead of a thin strip floating in the middle. */
@media (min-width: 1024px) {
  .mql-lock-page .mql-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .mql-lock-page .mql-demo {
    grid-template-columns: minmax(0, 1fr);
    max-width: 36rem;
  }
}

/* The chart is as tall as its candles plus room for the refusal toast, not a
   fixed 4:3 box that leaves an empty band under the candles. */
.mql-lock-page .mql-demo__chart {
  aspect-ratio: auto;
  padding-bottom: 3.25rem;
}

/* Desktops: the mock's text grows a little so it stays readable at its size. */
@media (min-width: 1280px) {
  .mql-lock-page .mql-demo__bar,
  .mql-lock-page .mql-demo__chart-bar,
  .mql-lock-page .mql-demo__row,
  .mql-lock-page .mql-demo__ea,
  .mql-lock-page .mql-demo__toast {
    font-size: var(--font-size-sm);
  }

  .mql-lock-page .mql-demo__row {
    min-height: 2.75rem;
  }

  .mql-lock-page .mql-demo__ea {
    top: 3rem;
  }
}

/* Wide monitors: a wider page column with larger type, as on the Services
   pages, so the content does not float in a narrow strip in the middle. */
@media (min-width: 1680px) {
  .mql-lock-page {
    --mql-max: clamp(84rem, 40rem + 36vw, 104rem);
    --mql-fs-h2: clamp(2.75rem, 1.6rem + 1.1vw, 3.4rem);
    --mql-fs-h3: clamp(1.25rem, 0.95rem + 0.3vw, 1.45rem);
    --mql-fs-lead: clamp(1.2rem, 0.95rem + 0.25vw, 1.4rem);
  }

  .mql-lock-page .mql-hero__title {
    font-size: clamp(3.75rem, 1.5rem + 2.2vw, 4.75rem);
  }

  .mql-lock-page .mql-hero__lead {
    max-width: 46rem;
  }

  .mql-lock-page .mql-hero__facts,
  .mql-lock-page .mql-plan__features,
  .mql-lock-page .mql-video__meta {
    font-size: var(--font-size-md);
  }

  .mql-lock-page .mql-card__text,
  .mql-lock-page .mql-step__text,
  .mql-lock-page .mql-faq__answer,
  .mql-lock-page .mql-compare__table th,
  .mql-lock-page .mql-compare__table td {
    font-size: 1.0625rem;
  }

  .mql-lock-page .mql-demo {
    max-width: 42rem;
  }

  .mql-lock-page .mql-demo__bar,
  .mql-lock-page .mql-demo__chart-bar,
  .mql-lock-page .mql-demo__row,
  .mql-lock-page .mql-demo__ea,
  .mql-lock-page .mql-demo__toast,
  .mql-lock-page .mql-demo__steps {
    font-size: var(--font-size-base);
  }

  .mql-lock-page .mql-demo__row {
    min-height: 3rem;
  }
}
