/* Public MT5 Cloud Copier page (/mt5-cloud): copy trading between MT5 accounts in the cloud.
 *
 * Built on theme-dark.css, auth.css (backdrop, gold button, ghost button,
 * --auth-* tokens), contact.css (contact cards) and the shared part of
 * mql-lock-page.css (sections, cards, plans, FAQ, videos, CTA and the
 * `mql-reveal` scroll reveal). This file gives the page its own identity:
 *
 * 1. A sky / violet accent on the shared components (scoped to .mtc-page).
 * 2. The hero copy flow: a trade opens on the master, travels through the
 *    cloud and opens on three slaves, each with its own link settings.
 * 3. The steps, the copy settings, "What is copied", the trading cards.
 * 4. The pricing: the duration switch, one plan list per duration and the
 *    "More than 8 accounts?" card.
 *
 * Motion rules: only transform and opacity are animated; every animated part
 * keeps its space at all times (no layout shift); the loop runs only under
 * prefers-reduced-motion: no-preference and pauses off screen (mt5-cloud.js).
 * The un-animated styles are the final state of the loop, so reduced motion
 * shows a finished picture. Mobile first (from 320px); sizes are fluid.
 *
 * Technique used for the moving dots: the moving element is a full-size
 * layer (`inset: 0`) over its track, so `translateY(100%)` always means "the
 * whole length of the track", whatever the screen width.
 */

.mtc-page {
  --mtc-sky: #5cc8ff;
  --mtc-sky-strong: #8edbff;
  --mtc-sky-soft: rgba(92, 200, 255, 0.14);
  --mtc-sky-line: rgba(92, 200, 255, 0.45);
  --mtc-sky-glow: rgba(92, 200, 255, 0.35);
  --mtc-violet: #a594ff;
  --mtc-violet-soft: rgba(165, 148, 255, 0.16);
  --mtc-on-accent: #04101c;
  --mtc-buy: var(--auth-success);
  --mtc-buy-soft: rgba(94, 224, 160, 0.14);
  --mtc-sell: var(--auth-error);
  --mtc-sell-soft: rgba(255, 138, 138, 0.14);
  --mtc-gap: clamp(0.4rem, 0.25rem + 0.8vw, 0.85rem);
  --mtc-loop: 9s;
}

/* ============================================================ Accents */

.mtc-page .mql-eyebrow {
  background-color: var(--mtc-sky-soft);
  color: var(--mtc-sky);
}

.mtc-page .mql-breadcrumb__list a:hover {
  color: var(--mtc-sky);
}

.mtc-page .mql-hero__fact-icon,
.mtc-page .mql-plan__check {
  color: var(--mtc-sky);
}

.mtc-page .mql-card__icon {
  background: linear-gradient(145deg, var(--mtc-sky-strong), var(--mtc-violet));
  color: var(--mtc-on-accent);
  box-shadow: 0 10px 30px -12px var(--mtc-sky-glow);
}

.mtc-page .mql-card::before,
.mtc-page .mql-plan::before {
  background: radial-gradient(circle at 0% 0%, rgba(92, 200, 255, 0.12), transparent 60%);
}

.mtc-page .mql-plan--highlight {
  border-color: var(--mtc-sky-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(92, 200, 255, 0.16), transparent 55%),
    var(--mql-surface-raised);
  box-shadow: 0 24px 60px -30px var(--mtc-sky-glow);
}

.mtc-page .mql-plan__badge {
  background: linear-gradient(135deg, var(--mtc-sky-strong), var(--mtc-violet));
  color: var(--mtc-on-accent);
}

.mtc-page .mql-video__link {
  color: var(--mtc-sky);
}

.mtc-page .mtc-video__poster {
  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(92, 200, 255, 0.22), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(165, 148, 255, 0.22), transparent 55%),
    var(--mql-surface);
}

.mtc-page .mtc-cta {
  border-color: var(--mtc-sky-line);
  background:
    radial-gradient(circle at 0% 0%, rgba(92, 200, 255, 0.16), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(165, 148, 255, 0.16), transparent 50%),
    var(--mql-surface-raised);
}

/* The final CTA follows the bordered FAQ section directly: give it room above. */
.mtc-page .mql-section--alt + .mql-section--cta {
  padding-top: var(--mql-section-gap);
}

/* ================================================================ Hero */

/* Sky light in place of the gold one; it drifts with auth.css's keyframes,
   only when motion is welcome (this rule would otherwise outrank auth.css's
   reduced-motion "animation: none"). */
.mtc-aurora--sky {
  top: -38%;
  left: -16%;
  background: radial-gradient(circle, rgba(92, 200, 255, 0.2), transparent 62%);
  animation: none;
}

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

.mtc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border: 1px solid var(--mtc-sky-line);
  border-radius: var(--radius-pill);
  background-color: var(--mtc-sky-soft);
  color: var(--mtc-sky-strong);
  font-size: var(--auth-fs-small);
  font-weight: var(--font-weight-semibold);
}

.mtc-kicker__icon {
  width: 1rem;
  height: 1rem;
}

.mtc-hero__title {
  max-width: 14ch;
  background: linear-gradient(100deg, var(--auth-text) 30%, var(--mtc-sky-strong) 70%, var(--mtc-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Browsers without text clipping keep the plain light heading. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .mtc-hero__title {
    background: none;
    color: var(--auth-text);
  }
}

.mtc-hero__promise {
  color: var(--auth-text);
  font-weight: var(--font-weight-semibold);
}

.mtc-hero__lead {
  max-width: 40rem;
}

/* ------------------------------------------------------ Copy flow (mock) */

.mtc-flow {
  display: grid;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  font-size: clamp(0.6875rem, 0.62rem + 0.25vw, 0.8125rem);
}

.mtc-node {
  position: relative;
  min-width: 0;
  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);
}

.mtc-node--master {
  border-color: var(--mtc-sky-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(92, 200, 255, 0.12), transparent 60%),
    var(--mql-surface);
}

.mtc-node__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--auth-line);
  color: var(--auth-subtle);
  font-weight: var(--font-weight-semibold);
}

.mtc-node__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The idle line and the trade share one grid cell, so swapping them never moves anything. */
.mtc-node__body {
  display: grid;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
}

.mtc-node__idle,
.mtc-trade {
  grid-area: 1 / 1;
}

.mtc-node__idle {
  color: var(--auth-subtle);
  font-style: italic;
  opacity: 0;
}

.mtc-trade {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.mtc-trade__symbol {
  color: var(--auth-text);
  font-weight: var(--font-weight-bold);
}

.mtc-trade__lot {
  color: var(--auth-muted);
}

.mtc-chip,
.mtc-side {
  flex: 0 0 auto;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
}

.mtc-chip--master {
  background: linear-gradient(135deg, var(--mtc-sky-strong), var(--mtc-sky));
  color: var(--mtc-on-accent);
}

.mtc-chip--slave {
  background-color: var(--mtc-violet-soft);
  color: var(--mtc-violet);
}

.mtc-side--buy {
  background-color: var(--mtc-buy-soft);
  color: var(--mtc-buy);
}

.mtc-side--sell {
  background-color: var(--mtc-sell-soft);
  color: var(--mtc-sell);
}

.mtc-live {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  color: var(--mtc-buy);
}

.mtc-live__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 0 3px var(--mtc-buy-soft);
}

/* The cloud between the master and its slaves. */
.mtc-hub {
  display: grid;
  justify-items: center;
}

.mtc-hub__trunk,
.mtc-slave__track {
  position: relative;
  display: block;
  width: 2px;
  background: linear-gradient(var(--mtc-sky-line), var(--mtc-sky-soft));
}

.mtc-hub__trunk {
  height: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.mtc-hub__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--mtc-sky-line);
  border-radius: var(--radius-pill);
  background-color: #0d1722;
  color: var(--mtc-sky-strong);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  box-shadow: 0 0 0 6px rgba(92, 200, 255, 0.06), 0 14px 30px -18px var(--mtc-sky-glow);
}

.mtc-hub__badge span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtc-hub__icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

/* The bus runs from the centre of the first slave to the centre of the last. */
.mtc-hub__bus {
  justify-self: stretch;
  position: relative;
  height: clamp(0.85rem, 0.7rem + 0.6vw, 1.15rem);
  margin-inline: calc((100% - 2 * var(--mtc-gap)) / 6);
  border-bottom: 2px solid var(--mtc-sky-line);
}

.mtc-hub__bus::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -2px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background-color: var(--mtc-sky-line);
}

.mtc-slaves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mtc-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mtc-slave {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.mtc-slave__track {
  height: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
}

.mtc-slave .mtc-node {
  justify-self: stretch;
}

.mtc-slave .mtc-node__bar {
  padding-inline: 0.55rem;
}

.mtc-slave .mtc-node__body {
  min-height: 3.6rem;
  padding: 0.45rem 0.55rem 0.55rem;
}

.mtc-rule {
  display: block;
  padding: 0.35rem 0.55rem 0;
  overflow: hidden;
  color: var(--mtc-sky);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Packets: a full-size layer moved down its track, with a dot at its top. */
.mtc-packet {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.mtc-packet__dot {
  position: absolute;
  top: -0.3rem;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: -0.3rem;
  border-radius: 50%;
  background-color: var(--mtc-sky-strong);
  box-shadow: 0 0 0 4px var(--mtc-sky-soft), 0 0 14px var(--mtc-sky-glow);
}

@media (prefers-reduced-motion: no-preference) {
  .mtc-aurora--sky {
    animation: auth-drift-a 22s ease-in-out infinite alternate;
  }

  .mtc-trade--master {
    animation: mtc-master-trade var(--mtc-loop) var(--auth-ease) infinite;
  }

  .mtc-node--master .mtc-node__idle {
    animation: mtc-master-idle var(--mtc-loop) linear infinite;
  }

  .mtc-packet--trunk {
    animation: mtc-packet-trunk var(--mtc-loop) linear infinite;
  }

  .mtc-packet--1 { animation: mtc-packet-1 var(--mtc-loop) linear infinite; }
  .mtc-packet--2 { animation: mtc-packet-2 var(--mtc-loop) linear infinite; }
  .mtc-packet--3 { animation: mtc-packet-3 var(--mtc-loop) linear infinite; }

  .mtc-slave--1 .mtc-trade { animation: mtc-copy-1 var(--mtc-loop) var(--auth-ease) infinite; }
  .mtc-slave--2 .mtc-trade { animation: mtc-copy-2 var(--mtc-loop) var(--auth-ease) infinite; }
  .mtc-slave--3 .mtc-trade { animation: mtc-copy-3 var(--mtc-loop) var(--auth-ease) infinite; }

  .mtc-slave--1 .mtc-node__idle { animation: mtc-idle-1 var(--mtc-loop) linear infinite; }
  .mtc-slave--2 .mtc-node__idle { animation: mtc-idle-2 var(--mtc-loop) linear infinite; }
  .mtc-slave--3 .mtc-node__idle { animation: mtc-idle-3 var(--mtc-loop) linear infinite; }

  .mtc-live__dot {
    animation: mtc-pulse 1.8s ease-in-out infinite;
  }

  .mtc-flow.is-offscreen *,
  .mtc-flow.is-offscreen *::before {
    animation-play-state: paused;
  }
}

/* Timeline of one 9-second cycle: the master trade (6%), the packet to the
   cloud (10-22%), the packets to the slaves (24-42%), the copies (36-44%),
   everything resets (88-96%). */
@keyframes mtc-master-trade {
  0%, 5% { opacity: 0; transform: translate3d(0, 6px, 0); }
  9%, 88% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: none; }
}

@keyframes mtc-master-idle {
  0%, 4% { opacity: 1; }
  7%, 90% { opacity: 0; }
  95%, 100% { opacity: 1; }
}

@keyframes mtc-packet-trunk {
  0%, 9% { opacity: 0; transform: translate3d(0, 0, 0); }
  10% { opacity: 1; transform: translate3d(0, 0, 0); }
  21% { opacity: 1; transform: translate3d(0, 100%, 0); }
  23%, 100% { opacity: 0; transform: translate3d(0, 100%, 0); }
}

@keyframes mtc-packet-1 {
  0%, 23% { opacity: 0; transform: translate3d(0, 0, 0); }
  24% { opacity: 1; transform: translate3d(0, 0, 0); }
  34% { opacity: 1; transform: translate3d(0, 100%, 0); }
  36%, 100% { opacity: 0; transform: translate3d(0, 100%, 0); }
}

@keyframes mtc-packet-2 {
  0%, 26% { opacity: 0; transform: translate3d(0, 0, 0); }
  27% { opacity: 1; transform: translate3d(0, 0, 0); }
  37% { opacity: 1; transform: translate3d(0, 100%, 0); }
  39%, 100% { opacity: 0; transform: translate3d(0, 100%, 0); }
}

@keyframes mtc-packet-3 {
  0%, 29% { opacity: 0; transform: translate3d(0, 0, 0); }
  30% { opacity: 1; transform: translate3d(0, 0, 0); }
  40% { opacity: 1; transform: translate3d(0, 100%, 0); }
  42%, 100% { opacity: 0; transform: translate3d(0, 100%, 0); }
}

@keyframes mtc-copy-1 {
  0%, 34% { opacity: 0; transform: scale(0.94); }
  38%, 88% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: none; }
}

@keyframes mtc-copy-2 {
  0%, 37% { opacity: 0; transform: scale(0.94); }
  41%, 88% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: none; }
}

@keyframes mtc-copy-3 {
  0%, 40% { opacity: 0; transform: scale(0.94); }
  44%, 88% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: none; }
}

@keyframes mtc-idle-1 {
  0%, 33% { opacity: 1; }
  35%, 90% { opacity: 0; }
  95%, 100% { opacity: 1; }
}

@keyframes mtc-idle-2 {
  0%, 36% { opacity: 1; }
  38%, 90% { opacity: 0; }
  95%, 100% { opacity: 1; }
}

@keyframes mtc-idle-3 {
  0%, 39% { opacity: 1; }
  41%, 90% { opacity: 0; }
  95%, 100% { opacity: 1; }
}

@keyframes mtc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* =============================================================== Steps */

.mtc-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;
}

@media (min-width: 900px) {
  .mtc-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mtc-step {
  position: relative;
  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);
}

.mtc-step__number {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mtc-sky-strong), var(--mtc-violet));
  color: var(--mtc-on-accent);
  font-family: var(--font-brand);
  font-weight: var(--font-weight-brand);
  box-shadow: 0 10px 30px -12px var(--mtc-sky-glow);
}

.mtc-step__title,
.mtc-panel-card__title,
.mtc-compare__title,
.mtc-more__title,
.mtc-period__title {
  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;
}

.mtc-step__text {
  color: var(--auth-muted);
  line-height: 1.6;
}

/* An arrow between the steps on wide screens (decorative). */
@media (min-width: 900px) {
  .mtc-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--mql-card-pad) + 1.3rem);
    right: calc(-0.5 * clamp(0.85rem, 0.7rem + 0.6vw, 1.4rem) - 0.35rem);
    z-index: 1;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 2px solid var(--mtc-sky-line);
    border-right: 2px solid var(--mtc-sky-line);
    transform: rotate(45deg);
  }
}

/* ============================================================ Two columns */

.mtc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 0.8rem + 1vw, 2rem);
}

@media (min-width: 960px) {
  .mtc-split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .mtc-split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------- Copy settings */

.mtc-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0;
}

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

.mtc-settings__item {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--auth-line);
  border-left: 3px solid var(--mtc-sky-line);
  border-radius: var(--auth-radius-sm);
  background-color: var(--mql-surface);
  transition: border-color var(--transition-normal);
}

.mtc-settings__item:hover {
  border-color: var(--auth-line-strong);
  border-left-color: var(--mtc-sky);
}

.mtc-settings__term {
  color: var(--auth-text);
  font-weight: var(--font-weight-bold);
}

.mtc-settings__text {
  margin: 0.3rem 0 0;
  color: var(--auth-muted);
  font-size: var(--auth-fs-small);
  line-height: 1.55;
}

.mtc-link-card {
  display: grid;
  gap: 0.75rem;
  padding: var(--mql-card-pad);
  border: 1px solid var(--mtc-sky-line);
  border-radius: var(--auth-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(165, 148, 255, 0.14), transparent 55%),
    var(--mql-surface-raised);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.95);
  font-size: var(--auth-fs-small);
}

@media (min-width: 960px) {
  .mtc-link-card {
    position: sticky;
    top: calc(var(--site-header-height) + 1.5rem);
  }
}

.mtc-link-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mtc-link-card__arrow {
  width: 1rem;
  height: 1rem;
  color: var(--auth-subtle);
}

.mtc-link-card__head .mtc-toggle {
  margin-left: auto;
}

.mtc-link-card__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mtc-link-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-muted);
}

.mtc-link-card__list strong {
  color: var(--auth-text);
  text-align: right;
}

.mtc-link-card__list .mtc-ok {
  color: var(--mtc-buy);
}

/* A decorative on/off switch (never a control: the real ones are in the panel). */
.mtc-toggle {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 1.4rem;
  border-radius: var(--radius-pill);
  background-color: var(--auth-line-strong);
}

.mtc-toggle__knob {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--auth-text);
  transform: translateX(1.1rem);
}

.mtc-toggle--on,
.mtc-toggle--demo {
  background: linear-gradient(135deg, var(--mtc-sky-strong), var(--mtc-sky));
}

.mtc-toggle--on .mtc-toggle__knob,
.mtc-toggle--demo .mtc-toggle__knob {
  background-color: var(--mtc-on-accent);
}

/* ------------------------------------------------------- What is copied */

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

@media (min-width: 800px) {
  .mtc-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mtc-compare__card,
.mtc-panel-card {
  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);
}

.mtc-compare__card--yes {
  border-top: 3px solid var(--mtc-buy);
}

.mtc-compare__card--no {
  border-top: 3px solid var(--mtc-sell);
}

.mtc-compare__title,
.mtc-panel-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mtc-compare__icon,
.mtc-panel-card__icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
}

.mtc-compare__card--yes .mtc-compare__icon {
  color: var(--mtc-buy);
}

.mtc-compare__card--no .mtc-compare__icon {
  color: var(--mtc-sell);
}

.mtc-panel-card__icon {
  color: var(--mtc-sky);
}

.mtc-panel-card--accent {
  border-color: var(--mtc-sky-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(92, 200, 255, 0.12), transparent 55%),
    var(--mql-surface-raised);
}

.mtc-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--auth-muted);
  line-height: 1.55;
}

.mtc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.mtc-list__icon {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
}

.mtc-list__icon--yes {
  color: var(--mtc-sky);
}

.mtc-list__icon--no {
  color: var(--mtc-sell);
}

.mtc-one-click {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--mtc-sky-line);
  border-radius: var(--auth-radius-sm);
  color: var(--auth-text);
  font-weight: var(--font-weight-semibold);
}

/* =============================================================== Pricing */

.mtc-pricing {
  display: grid;
  gap: clamp(1.75rem, 1.25rem + 2vw, 3rem);
}

.mtc-switch-wrap {
  display: flex;
  justify-content: center;
}

.mtc-switch-wrap[hidden] {
  display: none;
}

.mtc-switch {
  display: inline-grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0.25rem;
  width: min(100%, 26rem);
  padding: 0.3rem;
  border: 1px solid var(--auth-line-strong);
  border-radius: var(--radius-pill);
  background-color: var(--mql-surface);
}

.mtc-switch__option {
  min-height: 44px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--auth-muted);
  font: inherit;
  font-size: var(--auth-fs-small);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mtc-switch__option:hover {
  color: var(--auth-text);
  background-color: rgba(255, 255, 255, 0.05);
}

.mtc-switch__option[aria-checked="true"] {
  background: linear-gradient(135deg, var(--mtc-sky-strong), var(--mtc-sky));
  color: var(--mtc-on-accent);
  box-shadow: 0 8px 24px -12px var(--mtc-sky-glow);
}

.mtc-switch__option:focus-visible {
  outline: 2px solid var(--mtc-sky-strong);
  outline-offset: 2px;
}

.mtc-period {
  display: grid;
  gap: 1rem;
}

.mtc-period[hidden] {
  display: none;
}

.mtc-period__title {
  text-align: center;
}

/* With the switch, the switch names the duration: the heading stays for screen readers only. */
.mtc-pricing.is-switchable .mtc-period__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* As many plan cards per row as fit (three side by side from about 800px), in a capped, centred row. */
@media (min-width: 640px) {
  .mtc-plans {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
  }
}

/* The badge overlaps the card's top edge: leave room above the first row. */
.mtc-plans {
  padding-top: 0.75rem;
}

.mtc-plan__title {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
}

/* The first-month note of a 1-month plan with a setup fee. */
.mtc-plan__setup,
.mtc-plan__renewal {
  font-size: var(--auth-fs-small);
  line-height: 1.45;
}

.mtc-plan__setup {
  margin-top: 0.35rem;
  color: var(--auth-muted);
}

.mtc-plan__renewal {
  color: var(--mtc-sky);
  font-weight: var(--font-weight-semibold);
}

.mtc-plan__na {
  color: var(--auth-subtle);
}

.mtc-plan--off {
  border-style: dashed;
}

.mtc-more {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  padding: var(--mql-card-pad);
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background:
    radial-gradient(circle at 0% 100%, rgba(165, 148, 255, 0.12), transparent 55%),
    var(--mql-surface);
}

@media (min-width: 720px) {
  .mtc-more {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 2rem;
  }
}

.mtc-more__text {
  margin-top: 0.35rem;
  color: var(--auth-muted);
  line-height: 1.55;
}

.mtc-more__button {
  justify-content: center;
}

/* ========================================================== Risk warning */

.mtc-risk-section {
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.mtc-risk {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
  border: 1px solid rgba(255, 138, 138, 0.35);
  border-radius: var(--auth-radius-sm);
  background-color: rgba(255, 138, 138, 0.06);
}

.mtc-risk__icon {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  color: var(--mtc-sell);
}

.mtc-risk__title {
  font-family: var(--font-brand);
  font-size: var(--mql-fs-h3);
  font-weight: var(--font-weight-bold);
}

.mtc-risk__text {
  margin-top: 0.3rem;
  color: var(--auth-muted);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .mtc-settings__item,
  .mtc-switch__option {
    transition: none;
  }
}
