/* Paktos Markets: the brokerage components, drawn in Alex's Milk & Light system (site.css holds his tokens and
   components unchanged). Everything here uses those tokens; no new colours except the lavender of the average line. */

/* ---------- brand: the Paktos lockup with "Markets" set beside it ---------- */
.nav__brand { gap: 0; }
.brand__sub { display: inline-block; margin-left: 7px; font-size: 19px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--slate); transform: translateY(0.5px); }
.nav.is-night .brand__sub { color: var(--night-muted); }
.menu-open .nav .brand__sub { color: var(--slate); }
.foot__lockup { display: inline-flex; align-items: center; }
.foot__lockup svg { height: 24px; width: auto; display: block; color: var(--ink); }
.foot__lockup .brand__sub { font-size: 23px; margin-left: 8px; }
.lsheet__brand { display: inline-flex; align-items: center; }
.lsheet__brand .brand__sub { font-size: 19px; }

/* ---------- hero ---------- */
.hero__risk { font-size: 13px; line-height: 1.45; color: var(--slate-2); max-width: 36em; text-align: center; text-wrap: balance; }
.hero__risk a { color: var(--slate); text-underline-offset: 3px; }
html.motion-ok .seq__step--a .hero__bottom { gap: 18px; }

/* without motion the steps stack; these stand in for the 3D */
.mkchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; margin: 8px auto 0; }
.mkchips li { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--r-pill); font: 500 14px var(--font-mono); color: var(--slate); background: linear-gradient(145deg, var(--raised-1), var(--raised-2)); box-shadow: var(--raised-xs); }
.mkchips li.is-lit, .movers li.is-lit { color: var(--ink); background: rgba(211, 194, 240, 0.6); box-shadow: var(--glow-sm); }
.clockring { position: relative; width: min(70vw, 280px); margin: 0 auto; display: grid; place-items: center; }
.clockring .ring { width: 100%; height: auto; overflow: visible; }
.clockring__fig { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.04em; }
.movers { max-width: 420px; margin: 0 auto; padding: 10px; border-radius: var(--r-lg); text-align: left; background: linear-gradient(160deg, var(--porcelain), #f1f0f5 70%); box-shadow: var(--raised-card); }
.movers li { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); font-size: 15px; }
.movers .r { width: 22px; color: var(--slate-2); font-size: 13px; }
.movers .n { flex: 1; font-weight: 500; }
.movers .v { font-size: 13px; color: var(--slate); }

/* ---------- markets: the MetaTrader tile carries a chart where the ticket was ---------- */
.tile--mt5 .tile__chart { position: absolute; right: 3%; top: 50%; width: 46%; max-width: 560px; transform: translateY(-50%); pointer-events: none; }
.cd { display: block; width: 100%; height: auto; overflow: visible; }
.cd__grid { stroke: var(--hairline); stroke-width: 1; }
.cd__wick { stroke: var(--slate-2); stroke-width: 1.2; }
.cd__body { fill: var(--porcelain); stroke: var(--slate-2); stroke-width: 1.2; }
.cd__body--dn { fill: var(--ink); stroke: var(--ink); }
.cd__ma { fill: none; stroke: #ad9fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cd__last { stroke: var(--halo); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.8; }
.cd__dot { fill: #fff; filter: url(#glow); }
.cd__px { font: 500 16px var(--font-mono); fill: var(--ink); }
html.motion-ok .tile--mt5 .cd__ma { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2400ms var(--ease-pour) 400ms; }
html.motion-ok .tile--mt5:not(.is-in) .cd__ma { stroke-dashoffset: 1; }
html.motion-ok .tile--mt5 .cd__body, html.motion-ok .tile--mt5 .cd__wick, html.motion-ok .tile--mt5 .cd__dot, html.motion-ok .tile--mt5 .cd__px, html.motion-ok .tile--mt5 .cd__last { transition: opacity 1100ms var(--ease-pour) 200ms; }
html.motion-ok .tile--mt5:not(.is-in) .cd__body, html.motion-ok .tile--mt5:not(.is-in) .cd__wick, html.motion-ok .tile--mt5:not(.is-in) .cd__dot, html.motion-ok .tile--mt5:not(.is-in) .cd__px, html.motion-ok .tile--mt5:not(.is-in) .cd__last { opacity: 0; }
.tile--battle .tile__win { color: var(--halo-ink); }
@media (max-width: 1023px) { .tile--mt5 .tile__chart { width: 40%; } }
@media (max-width: 719px) {
  .tile--mt5 { padding-top: 200px; }
  .tile--mt5 .tile__chart { top: 26px; right: 50%; width: 88%; transform: translateX(50%); }
}

/* ---------- accounts: the card falls back to CSS when there is no 3D ---------- */
.acard-wrap { display: grid; place-items: center; }
.acard {
  position: relative; width: 80%; aspect-ratio: 2.7 / 1.4; border-radius: 5.2% / 10%; overflow: hidden; container-type: inline-size;
  transform: rotate(-12deg); color: rgba(27, 26, 33, 0.5);
  background: linear-gradient(118deg, #f5f2fc 0%, #ebe5fa 38%, #f7e8f2 58%, #e3dff2 100%);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.65), inset 0 0 0 0.9cqw rgba(255, 255, 255, 0.35);
}
.acard::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(172deg, transparent 0 2.2cqw, rgba(27, 26, 33, 0.05) 2.2cqw 2.3cqw); }
.acard::after { content: ""; position: absolute; right: 23%; top: 12%; bottom: 12%; border-left: 0.35cqw dotted rgba(27, 26, 33, 0.22); }
.acard__brand { position: absolute; left: 6%; top: 17%; font: 500 2.3cqw/1 var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase; }
.acard__mark { position: absolute; left: 6%; top: 37%; width: 15cqw; height: 15cqw; color: rgba(27, 26, 33, 0.32); }
.acard__fig { position: absolute; left: 26%; top: 36%; font: 400 14cqw/1 var(--font-sans); letter-spacing: -0.03em; color: rgba(27, 26, 33, 0.42); }
.acard__line { position: absolute; left: 26.5%; top: 73%; font: 500 2cqw/1 var(--font-mono); letter-spacing: 0.24em; text-transform: uppercase; }
.acard__no { position: absolute; right: 11.5%; top: 50%; transform: translate(50%, -50%) rotate(-90deg); font: 500 2.1cqw/1 var(--font-mono); letter-spacing: 0.1em; white-space: nowrap; }

.accts .series__sub { max-width: 30em; }
.accts .series__copy .h2 { font-size: clamp(40px, 5.2vw, 84px); }
.steps4__list { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 44px); }
.steps4 .rung { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.steps4__txt b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.steps4__txt span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--night-muted); text-wrap: pretty; }
.steps4 .rung__bar { margin-top: auto; }
@media (max-width: 900px) { .steps4__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps4__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- platform: phone screens drawn in HTML, sized from the phone's own width ---------- */
.app__screens .phone { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.985); transition: opacity 720ms var(--ease-pour), transform 720ms var(--ease-pour); }
.app__screens .phone.is-on { opacity: 1; transform: none; }
@media (min-width: 900px) { html:not(.motion-ok) .app__screens .phone { opacity: 0; } html:not(.motion-ok) .app__screens .phone.is-on { opacity: 1; } }
@media (max-width: 899px) { .app__mphone { position: relative; width: 100%; aspect-ratio: 900 / 1554; } }
.phone {
  position: absolute; inset: 0; padding: 3.4%; border-radius: 13.5% / 7.8%;
  background: linear-gradient(145deg, #fbfaff, #e4e2ec);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.95), inset 0 -2px 6px rgba(146, 142, 172, 0.35), 0 40px 60px rgba(110, 100, 150, 0.22), 0 10px 22px rgba(110, 100, 150, 0.14);
}
.phone__screen {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; container-type: inline-size;
  border-radius: 10.5% / 6%; background: var(--porcelain); box-shadow: inset 0 0 0 1px rgba(27, 26, 33, 0.07);
  color: var(--ink); text-align: left; font-size: 4cqw; line-height: 1.3;
}
.ph__status { position: relative; flex: none; height: 12cqw; padding: 0 8cqw; display: flex; align-items: center; justify-content: space-between; font-size: 3.8cqw; font-weight: 500; }
.ph__isl { position: absolute; left: 50%; top: 3cqw; width: 28cqw; height: 8cqw; border-radius: 5cqw; background: #1b1a21; transform: translateX(-50%); }
.ph__bars { display: inline-flex; align-items: flex-end; gap: 0.7cqw; height: 3cqw; }
.ph__bars i { width: 0.9cqw; background: var(--ink); border-radius: 0.3cqw; }
.ph__bars i:nth-child(1) { height: 40%; } .ph__bars i:nth-child(2) { height: 70%; } .ph__bars i:nth-child(3) { height: 100%; }
.ph__head { flex: none; display: flex; align-items: baseline; justify-content: space-between; padding: 3cqw 6cqw 3.5cqw; }
.ph__head b { font-size: 7.4cqw; font-weight: 500; letter-spacing: -0.03em; }
.ph__live { display: inline-flex; align-items: center; gap: 1.6cqw; font: 500 3cqw/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.ph__live::before { content: ""; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0.4cqw rgba(172, 160, 255, 0.9), 0 0 2.5cqw 0.8cqw rgba(143, 125, 255, 0.55); }
.ph__tf { font-size: 3.4cqw; color: var(--slate); }
.ph__quotes { flex: 1; overflow: hidden; padding: 0 3cqw; }
.ph__quotes li { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 2.3cqw 3cqw; border-bottom: 1px solid var(--hairline); border-radius: 3cqw; }
.ph__quotes li.is-lit { border-color: transparent; background: rgba(211, 194, 240, 0.5); box-shadow: 0 0 0 1px rgba(172, 160, 255, 0.7), 0 0 3cqw rgba(143, 125, 255, 0.35); }
.q__sym { font-size: 4cqw; font-weight: 500; }
.q__sym small { display: block; margin-top: 0.5cqw; font-size: 2.7cqw; font-weight: 400; color: var(--slate-2); }
.q__px { display: flex; gap: 3.4cqw; text-align: right; font-size: 3.8cqw; }
.q__px b { font-weight: 500; }
.q__px small { font-size: inherit; color: var(--slate); }
.ph__tabs { flex: none; margin-top: auto; display: flex; justify-content: space-around; padding: 4cqw 4cqw 8cqw; border-top: 1px solid var(--hairline); font-size: 3.2cqw; color: var(--slate-2); }
.ph__tabs .is-on { color: var(--ink); font-weight: 500; }
.ph__chart { flex: none; padding: 2cqw 2cqw 0; }
.ph__chart .cd__px { font-size: 22px; }
.ph__tfs { flex: none; display: flex; justify-content: space-between; margin: 4cqw 6cqw 0; padding: 1.2cqw; border-radius: 99px; font-size: 3cqw; color: var(--slate); background: linear-gradient(145deg, var(--sunken-1), var(--sunken-2)); box-shadow: inset 0.6cqw 0.8cqw 1.6cqw rgba(146, 142, 172, 0.4), inset -0.6cqw -0.6cqw 1.4cqw #fff; }
.ph__tfs span { padding: 1.4cqw 2.4cqw; border-radius: 99px; }
.ph__tfs .is-on { color: var(--ink); background: var(--porcelain); box-shadow: 0.4cqw 0.6cqw 1.2cqw rgba(146, 142, 172, 0.35); }
.ph__ind { flex: none; display: flex; align-items: center; gap: 2cqw; margin: 4cqw 6cqw 0; font-size: 3.1cqw; color: var(--slate); }
.ph__ind i { width: 6cqw; height: 0.7cqw; border-radius: 1cqw; background: #ad9fff; box-shadow: 0 0 1.6cqw rgba(143, 125, 255, 0.7); }
.ph__trade { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; padding: 5cqw 6cqw 0; }
.ph__trade > span { display: flex; flex-direction: column; gap: 1cqw; padding: 3cqw 4cqw; border-radius: 4.5cqw; font-size: 3cqw; color: var(--slate); background: linear-gradient(145deg, var(--raised-1), var(--raised-2)); box-shadow: -1cqw -1cqw 2.4cqw #fff, 1.2cqw 1.4cqw 2.8cqw rgba(146, 142, 172, 0.4); }
.ph__trade b { font-size: 4.4cqw; font-weight: 500; color: var(--ink); }
.ph__trade .ph__buy { color: var(--night-muted); background: var(--ink-button); box-shadow: 1.2cqw 1.6cqw 3cqw rgba(30, 29, 36, 0.3); }
.ph__trade .ph__buy b { color: var(--on-ink); }
.ph__trade--big { padding-top: 7cqw; }
.ph__trade--big > span { padding: 4.4cqw 4.6cqw; }
.ph__form { flex: none; margin: 1cqw 6cqw 0; }
.ph__row { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 4.2cqw 0; border-bottom: 1px solid var(--hairline); font-size: 3.6cqw; color: var(--slate); }
.ph__row b { font-weight: 500; color: var(--ink); font-size: 3.9cqw; }
.ph__step { display: inline-flex; align-items: center; gap: 3cqw; padding: 1cqw; border-radius: 99px; background: linear-gradient(145deg, var(--sunken-1), var(--sunken-2)); box-shadow: inset 0.6cqw 0.8cqw 1.6cqw rgba(146, 142, 172, 0.4), inset -0.6cqw -0.6cqw 1.4cqw #fff; }
.ph__step i { width: 7cqw; height: 7cqw; display: grid; place-items: center; border-radius: 50%; font-style: normal; color: var(--ink); background: var(--porcelain); box-shadow: 0.4cqw 0.6cqw 1.2cqw rgba(146, 142, 172, 0.35); }
.ph__fine { flex: none; margin: 4cqw 6cqw 0; font: 500 2.6cqw/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-2); }

.dl { margin-top: clamp(64px, 8vw, 112px); text-align: center; }
.dl__list { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.dl__note { margin: 20px auto 0; max-width: 36em; font-size: 14px; line-height: 1.5; color: var(--slate-2); text-wrap: balance; }
@media (max-width: 560px) { .dl__list .btn { width: 100%; } .dl__list li { width: 100%; } }

/* ---------- company ---------- */
.company .head { margin-bottom: clamp(40px, 5vw, 64px); }
.facts { max-width: 1000px; margin-inline: auto; padding: 10px; border-radius: var(--r-xl); background: linear-gradient(160deg, var(--porcelain), #f1f0f5 70%); box-shadow: var(--raised-card); }
.facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: calc(var(--r-xl) - 10px); background: var(--hairline); }
.facts__list > div { min-width: 0; padding: 20px 24px; background: var(--porcelain); }
.facts dt { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-2); }
.facts dd { margin: 10px 0 0; font-size: 17px; line-height: 1.4; text-wrap: pretty; }
.company .proof { margin-top: clamp(40px, 5vw, 64px); }
.slot .fig { font-size: clamp(26px, 2.6vw, 34px); }
@media (max-width: 720px) { .facts__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.qa__a a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- register interest ---------- */
.wl--open .wl__actions { justify-content: center; margin: 38px 0 16px; }
.wl--open .wl__consent { margin-top: 6px; }

/* ---------- footer ---------- */
.foot__legal { margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--hairline); display: grid; gap: 14px; font-size: 13px; line-height: 1.6; color: var(--slate-2); }
.foot__legal p { max-width: 74em; }
.foot__legal strong { font-weight: 500; color: var(--slate); }
.foot__legal a { color: var(--slate); text-underline-offset: 3px; }
.foot__legal + .foot__fine { margin-top: 32px; }

/* ---------- the restricted-country notice ---------- */
.region {
  position: fixed; z-index: 70; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 32px), 720px);
  display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 22px; border-radius: 22px;
  font-size: 14px; line-height: 1.45; color: var(--slate);
  background: rgba(250, 249, 252, 0.94); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: var(--raised-md), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  opacity: 0; transform: translate(-50%, 24px); transition: opacity 600ms var(--ease-pour), transform 600ms var(--ease-pour);
}
.region.is-in { opacity: 1; transform: translate(-50%, 0); }
.region p { flex: 1; min-width: 0; }
.region b { font-weight: 500; color: var(--ink); }
.region a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.region__close { position: relative; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: linear-gradient(145deg, var(--raised-1), var(--raised-2)); box-shadow: var(--raised-xs); -webkit-tap-highlight-color: transparent; }
.region__close i { position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; margin-top: -0.75px; border-radius: 1px; background: var(--ink); }
.region__close i:first-of-type { transform: rotate(45deg); }
.region__close i:last-of-type { transform: rotate(-45deg); }
.region__close:focus-visible { box-shadow: var(--raised-xs), var(--ring-focus); border-radius: 50%; }

/* ---------- small screens ---------- */
/* the pill keeps its news, not the brand (which the nav already shows) */
@media (max-width: 440px) { .pill b, .pill__sep { display: none; } .pill__soon { display: inline; color: var(--ink); } }
@media (max-width: 480px) { .hero__risk { font-size: 12px; } html.motion-ok .seq__step--a .hero__bottom { gap: 16px; } .hero__bottom .actions { gap: 10px; } .hero__bottom .btn { padding: 0 20px; } }
