/* Ostrich Prop — the site.
   Written with a handful of colour tokens; the values below are the "gold" palette (dark and warm, shared with the
   trader dashboard) and css/palettes.css holds the other sets the firm can choose from.
   Colour carries meaning: red is a limit line (or an error), green is a target or a profit, sand is "close to a
   limit" and keyboard focus. The firm's own accent (--brand) is kept for the main button and a few marks, so it
   stays an accent. The mark, the firm's ostrich, is drawn in the colour of the words. Logical properties
   throughout: the same rules lay out Persian (right to left) and English (left to right). */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-wght.063c75da7f96.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/NotoKufiArabic-wght.a124917c2ba7.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

:root, .pal[data-palette="gold"], .pal[data-palette="silver"] {
  --ink: #141210;
  --ink-2: #1b1815;
  --ink-3: #24201c;
  --line: #2e2924;
  --line-2: #433b33;
  --bone: #f1ece5;
  --bone-2: #c9bfb3;
  --muted: #998f84;
  --red: #e4002b;
  --red-text: #ff6b7d;
  --sage: #4cc690;
  --sage-ink: #0f2a1e;
  --sand: #e4a84f;
  /* a limit's number where it is only being read (a table of rules, a plan's facts): the limit's red, unless the
     palette keeps its red for the buttons (black does) */
  --limit-text: var(--red-text);
  /* the firm's accent: the main button and the few marks that should be seen first (in this palette, the bone of
     the words; the red palettes put the firm's red here) */
  --brand: var(--bone);
  --brand-hi: #ffffff;
  --brand-ink: var(--ink);
  --brand-text: var(--bone);
  /* an ordinary main button (a form's "send", "save"): the firm's accent, unless the palette keeps that for the
     buttons that start a challenge (.btn-cta) and draws the rest in the colour of the words (black does) */
  --btn: var(--brand);
  --btn-hi: var(--brand-hi);
  --btn-ink: var(--brand-ink);
  --shadow: rgba(0, 0, 0, 0.8);
  --shadow-soft: rgba(0, 0, 0, 0.45);
  /* the light of the 3D scenes (js/scene.js reads these): gold */
  --sc-accent: #e2b85c;
  --sc-accent-hi: #f6e0a4;
  --sc-accent-ink: #1b1508;
  --sc-core: #ede3cc;
  --sc-data: #b3a894;
  --sc-grid: #8c7854;
  --sc-gain: #5fc897;
  --sc-loss: #f07467;
  --sc-sand: #ebae55;

  --font-text: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  /* Persian headings are Vazirmatn, bold but not at its blackest: large and a step lighter it reads calmer and
     cleaner (the weight of the firm's developer's own site, which the firm liked). Lines of a Persian heading need
     air between them (dots above, dots below), most of all when a heading runs to three. */
  --font-display: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --display-weight: 700;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.1rem + 1.2vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.2rem + 3.9vw, 3.9rem);
  --leading: 1.9;
  --leading-tight: 1.45;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --radius-sm: 10px;
  --section: clamp(64px, 9vw, 120px);
  /* a raised panel: a shade lighter toward its upper corner, as if lit from above, with a line of light along its
     upper edge (css/palettes.css flattens both on the light palettes, where paper needs neither) */
  --panel: linear-gradient(168deg, color-mix(in srgb, var(--bone) 8%, var(--ink-2)) 0%, var(--ink-2) 56%);
  --edge: inset 0 1px 0 color-mix(in srgb, var(--bone) 11%, transparent);
  /* cards and boxes: a panel by default; see-through glass when the living background is behind the page */
  --surface: var(--panel);
  --surface-blur: none;
  color-scheme: dark;
}
:lang(en) {
  /* English headings keep the Latin of Noto Kufi: wide, even letters that sit well beside the mark */
  --font-display: "Noto Kufi Arabic", "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  --display-weight: 700;
  --leading: 1.65;
  --leading-tight: 1.12;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 var(--step-0)/var(--leading) var(--font-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Persian pages: Vazirmatn's ss01 draws any Latin digit an editor typed as a Persian one; codes, wallets and
   anything typed left to right keep their Latin digits */
html[lang="fa"] body { font-feature-settings: "ss01"; }
html[lang="fa"] input[dir="ltr"], html[lang="fa"] code, html[lang="fa"] .latin-digits, html[lang="fa"] .login { font-feature-settings: normal; }
.login, .nowrap, .signed { white-space: nowrap; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.25em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--bone); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight); line-height: var(--leading-tight); margin: 0; text-wrap: balance; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.85em; }
[dir="ltr"] .flip, :lang(en) .flip { transform: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.num, [dir="ltr"].num { font-variant-numeric: tabular-nums; }
main { display: block; outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100; padding: 10px 16px;
  background: var(--bone); color: var(--ink); border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.55em 1.35em;
  background: var(--btn); color: var(--btn-ink); border: 1px solid var(--btn); border-radius: var(--radius-sm);
  font: 700 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--btn-hi); border-color: var(--btn-hi); }
/* the buttons that start or place a challenge: always the firm's accent */
.btn-cta { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-cta:hover { background: var(--brand-hi); border-color: var(--brand-hi); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0.4em 1em; font-size: 0.9375rem; }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink-3); border-color: var(--bone-2); }
/* a second button that should not compete with the main one: the words' own colour, filled */
.btn-quiet { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-quiet:hover { background: color-mix(in srgb, var(--bone) 86%, var(--ink)); border-color: color-mix(in srgb, var(--bone) 86%, var(--ink)); }
.btn-wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; text-decoration: none; color: var(--bone); }
.link-arrow .icon { transition: transform 0.15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(3px); }

/* ------------------------------------------------------------------ header */
.announce { background: var(--announce, var(--brand)); color: var(--announce-ink, var(--brand-ink)); font-size: var(--step--1); font-weight: 600; text-align: center; }
.announce .wrap { padding-block: 8px; }
.announce a { color: inherit; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); flex: none; }
/* the mark: the firm's ostrich (the sprite's #i-ostrich), in the colour of the words, at its own proportions */
/* the firm's mark is drawn in the colour of the words, unless the palette names a colour of its own for it */
.mark { width: 46px; height: 43px; color: var(--mark, var(--bone)); vertical-align: middle; }
.word { font: 700 1.0625rem/1.2 var(--font-display); }
/* the English name beside the mark is set as a wordmark, not as a line of text: capitals, evenly spaced */
:lang(en) .word { font: 800 0.9063rem/1.2 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.header-cta .cta-short { display: none; }
.nav { flex: 1; display: flex; align-items: center; gap: 24px; min-width: 0; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--bone-2); text-decoration: none;
  font-size: 0.9688rem; font-weight: 500; white-space: nowrap;
}
.nav-list a:hover { color: var(--bone); background: var(--ink-3); }
.nav-list a[aria-current="page"] { color: var(--bone); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.lang {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding-inline: 8px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--bone-2);
  font-weight: 700; font-size: 0.875rem; text-decoration: none;
}
.lang:hover { color: var(--bone); border-color: var(--bone-2); }
/* the team's way into the management (/cms/), shown to a signed-in member of the team only */
.header-team { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-inline: 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-2); color: var(--bone);
  font-weight: 600; font-size: 0.9063rem; text-decoration: none; white-space: nowrap; }
.header-team:hover { border-color: var(--bone-2); }
.header-team .icon { width: 18px; height: 18px; color: var(--bone-2); }
.header-account { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--bone-2); text-decoration: none;
  font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.header-account:hover { color: var(--bone); }
.header-account .avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--ink-3); border: 1px solid var(--line-2); color: var(--bone); font-size: 0.875rem; font-weight: 700;
}
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--bone); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer;
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1180px) {
  .header-team .label { display: none; }
  .header-team { padding-inline: 10px; }
}
@media (max-width: 1040px) {
  .header-account .label { display: none; }
}
@media (max-width: 900px) {
  .header-row { gap: 12px; min-height: 64px; }
  .menu-btn { display: inline-grid; }
  .header-actions .lang, .header-actions .header-team { display: none; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; z-index: 49; display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - 64px); overflow-y: auto; padding: 8px var(--gutter) 24px;
    background: var(--ink); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--bone); }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); padding-inline-start: 14px; }
  [dir="rtl"] .nav-list a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--brand); }
  .nav-extra { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-top: 18px; }
  .nav-extra a { display: inline-flex; align-items: center; gap: 8px; color: var(--bone-2); text-decoration: none; font-weight: 500; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .mark { width: 40px; height: 37px; }
  .word { font-size: 0.9375rem; }
  .header-actions .btn-sm { padding-inline: 0.8em; font-size: 0.875rem; }
  /* English on a small phone: the name and the button are longer than in Persian, so the sign-in link stays in
     the menu only and the button says one word */
  :lang(en) .word { font-size: 0.75rem; letter-spacing: 0.12em; }
  :lang(en) .header-actions .header-account { display: none; }
  :lang(en) .header-actions .btn-sm { line-height: 1.15; }
  /* the English label is long for a phone's header: one word there, the whole of it for a screen reader */
  :lang(en) .header-cta .cta-full { display: none; }
  :lang(en) .header-cta .cta-short { display: inline; }
}

/* phones narrower than most (under 360px): the button says one word in every language, on one line */
@media (max-width: 359px) {
  .header-cta { white-space: nowrap; }
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
}
/* the narrowest phones (320px): the header's parts close up, and the English name leaves the mark to stand alone */
@media (max-width: 340px) {
  .header-row { gap: 8px; }
  :lang(en) .word { display: none; }
}
@media (max-width: 300px) { .word { display: none; } }       /* a folded phone's outer screen: the mark alone */

/* ------------------------------------------------------------------ sections */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section.is-raised { background: var(--ink-2); border-block: 1px solid var(--line); }
.section.is-raised + .section, .section + .section.is-raised { padding-top: var(--section); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--bone-2); font-size: 1.0938rem; }
.section-foot { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

.sample-note {
  display: inline-flex; align-items: center; gap: 8px; color: var(--sand); font-size: var(--step--1);
}
.sample-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); flex: none; }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 1rem + 2.9vw, 3.05rem); font-weight: 800; }
.hero .lede { margin-top: 22px; max-width: 31em; color: var(--bone-2); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.hero-assure { margin-top: 26px; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { order: 2; }
}

/* the corridor: a challenge between its limit and its target */
.hero-figure { position: relative; margin: 0; }
.corridor-box { position: relative; }
.corridor { display: block; width: 100%; height: auto; font-family: var(--font-text); }
.corridor .grid { stroke: var(--line); stroke-width: 1; }
.corridor .tick { fill: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.corridor .zero { stroke: var(--bone-2); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.6; }
.corridor .target { stroke: var(--sage); stroke-width: 1.8; stroke-dasharray: 8 6; }
.corridor .limit { stroke: var(--red); stroke-width: 1.8; }
.corridor .limit-band { fill: var(--red); opacity: 0.08; }
.corridor .equity { fill: none; stroke: var(--bone); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.corridor .area { fill: url(#equity-fill); }
.corridor .dot { fill: var(--sage); stroke: var(--ink); stroke-width: 3; }
.corridor-label {
  position: absolute; margin-left: 8px; padding: 0 6px; background: var(--ink); border-radius: 4px;
  font-size: var(--step--1); font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.corridor-label.is-target { color: var(--sage); translate: 0 calc(-100% - 6px); }
.corridor-label.is-limit { color: var(--red-text); translate: 0 6px; }
.stamp {
  position: absolute; transform: translate(-50%, -50%) rotate(-9deg);
  padding: 0.18em 0.8em; border: 2px solid var(--sage); border-radius: 8px; outline: 1px solid color-mix(in srgb, var(--sage) 55%, transparent);
  outline-offset: 3px; background: var(--sage-ink); color: var(--sage);
  font: 800 clamp(1.05rem, 0.8rem + 1vw, 1.45rem)/1.5 var(--font-display); white-space: nowrap;
}
.corridor-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.payout-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--bone); color: var(--ink); font-weight: 700; font-size: 0.9375rem;
}
.payout-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 2px var(--ink); }
.corridor-note { color: var(--muted); font-size: var(--step--1); }

@media (prefers-reduced-motion: no-preference) {
  .corridor .equity { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(0.35, 0.6, 0.25, 1) 0.35s forwards; }
  .corridor .area { opacity: 0; animation: fade 0.8s ease 2.2s forwards; }
  .corridor .dot { opacity: 0; animation: fade 0.3s ease 2.6s forwards; }
  .corridor .target { animation: glow 0.9s ease 2.55s 1; }
  .stamp { opacity: 0; animation: stamp 0.42s cubic-bezier(0.2, 1.5, 0.4, 1) 2.75s forwards; }
  .payout-chip { opacity: 0; animation: rise 0.5s ease 3.3s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes glow { 50% { stroke-width: 3.4; } }
@keyframes stamp {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(1.8); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the live corridor (corridor.js replaces the drawing above with a 3D scene the visitor can move) */
.corridor-stage, .corridor-view { position: relative; }
.corridor-canvas { position: absolute; inset: 0; display: block; touch-action: pan-y; cursor: ew-resize; }
.hud, .corridor-controls { display: none; }
.hero-figure.is-live .corridor-view { aspect-ratio: 4 / 3; }
.hero-figure.is-live .corridor, .hero-figure.is-live .corridor-label { display: none; }
.hero-figure.is-live .stamp { display: none; animation: none; opacity: 1; left: auto; top: auto; }
.hero-figure.is-live.is-passed .stamp { display: block; animation: stamp-live 0.42s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes stamp-live {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(1.8); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(1); }
}
.hero-figure.is-live .hud {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); overflow: hidden;
}
.hud-cell { display: grid; grid-template-rows: auto 1fr auto; gap: 4px; padding: 12px 14px 14px; border-inline-start: 1px solid var(--line); min-width: 0; }
.hud-cell:first-child { border-inline-start: 0; }
.hud-cell dt { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.hud-cell dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.hud-cell dd b { font: 700 1.0625rem/1.35 var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-cell.is-balance dd b { font: 800 1.125rem/1.35 var(--font-display); }
.hud-change { font-weight: 700; font-size: 0.8125rem; }
.hud-change.is-up { color: var(--sage); }
.hud-change.is-down { color: var(--red-text); }
.hud-cell i { height: 3px; margin-top: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hud-cell i b { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0.02); }
[dir="rtl"] .hud-cell i b { transform-origin: 100% 50%; }
.hud-cell.is-target dd b { color: var(--sage); }
.hud-cell.is-target i b { background: var(--sage); }
.hud-cell.is-daily dd b { color: var(--sand); }
.hud-cell.is-daily i b { background: var(--sand); }
.hud-cell.is-total dd b { color: var(--red-text); }
.hud-cell.is-total i b { background: var(--red); }
.hud-near {
  display: none; position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0;
  padding: 4px 10px; border-radius: 6px; background: var(--sand); color: var(--ink); font-weight: 700; font-size: 0.875rem;
}
.hero-figure.is-live.is-near .hud-near { display: block; }
.hero-figure.is-near .hud-cell.is-daily { background: color-mix(in srgb, var(--sand) 10%, var(--ink-2)); }
@media (max-width: 760px) {
  .hero-figure.is-live .hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud-cell:nth-child(3) { border-inline-start: 0; }
  .hud-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.hero-figure.is-live .corridor-controls { display: block; margin-bottom: 6px; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-chips button {
  min-height: 40px; padding: 0.35em 1em; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--bone-2); font: 600 0.9375rem/1.2 var(--font-text); cursor: pointer;
}
.plan-chips button:hover { color: var(--bone); border-color: var(--bone-2); }
.plan-chips button[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.scrub { display: none; }
.hero-figure.is-live .scrub { display: block; margin-top: 2px; }
.scrub input { display: block; width: 100%; direction: ltr; accent-color: var(--sage); height: 28px; margin: 0; cursor: ew-resize; }
.hero-figure.is-live .payout-chip { opacity: 0; animation: none; transition: opacity 0.4s ease, transform 0.4s ease; transform: translateY(6px); }
.hero-figure.is-live.is-passed .payout-chip { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .hero-figure.is-live .corridor-view { aspect-ratio: 1 / 1; }
}

/* ------------------------------------------------------------------ the trader's path (a real sequence) */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); }
.path > li { position: relative; padding-inline-end: 28px; }
.path > li:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; inset-inline-start: 46px; width: calc(100% - 46px); height: 2px;
  background: var(--line-2);
}
.path-n {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--bone-2); color: var(--bone);
  font: 800 1.125rem/1 var(--font-display);
}
.path > li.is-funded .path-n { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.path > li.is-payout .path-n { border-color: var(--sage); background: var(--sage); color: var(--ink); }
.path h3 { margin-top: 18px; font-size: var(--step-1); }
.path p { margin-top: 8px; color: var(--bone-2); font-size: 0.9688rem; }
.path .facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; font-size: 0.9375rem; }
.path .facts li { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-top: 1px dashed var(--line-2); }
.path .facts span { color: var(--muted); }
.path .facts b { font-weight: 600; white-space: nowrap; }
.path .facts b.is-target { color: var(--sage); }
.path .facts b.is-limit { color: var(--limit-text); }
@media (max-width: 860px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .path > li { padding-inline: 70px 0; }
  .path > li:not(:last-child)::after { top: 46px; bottom: -34px; inset-inline-start: 22px; width: 2px; height: auto; }
  .path-n { position: absolute; inset-inline-start: 0; top: 0; }
  .path h3 { margin-top: 8px; }
}

/* ------------------------------------------------------------------ plans: one panel, columns on one scale */
.plans {
  display: grid; grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr));
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.plan { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 2.6vw, 34px); border-inline-start: 1px solid var(--line); position: relative; }
.plan:first-child { border-inline-start: 0; }
.plan.is-featured { background: var(--ink-3); }
.plan-pick { position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--brand); }
.plan-head h3 { font-size: var(--step-2); }
.plan-head p { margin-top: 6px; color: var(--bone-2); font-size: 0.9688rem; min-height: 3.6em; }
.plan-meta { color: var(--muted); font-size: var(--step--1); margin-top: 4px; }
.plan-bars { display: block; width: 100%; height: auto; }
.plan-bars .base { stroke: var(--line-2); stroke-width: 1; }
.plan-bars .up { fill: var(--sage); }
.plan-bars .up.is-later { fill: color-mix(in srgb, var(--sage) 55%, var(--ink-2)); }
.plan-bars .down { fill: var(--red); }
.plan-bars .daily { fill: none; stroke: var(--bone-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.plan-bars text { font-size: 12.5px; font-weight: 600; font-family: var(--font-text); }
.plan-bars .t-up { fill: var(--sage); }
.plan-bars .t-down { fill: var(--red-text); }
.plan-bars .t-daily { fill: var(--bone-2); font-weight: 500; }
.plan-bars .t-muted { fill: var(--muted); font-weight: 500; }
.plan-facts { margin: 0; display: grid; gap: 0; font-size: 0.9688rem; }
.plan-facts div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-top: 1px solid var(--line); }
.plan-facts dt { color: var(--bone-2); }
.plan-facts dd { margin: 0; font-weight: 600; text-align: end; }
.plan-facts dd.is-target { color: var(--sage); }
.plan-facts dd.is-limit { color: var(--limit-text); }
.plan-buy { margin-top: auto; display: grid; gap: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .from { color: var(--muted); font-size: var(--step--1); }
.plan-price b { font: 800 1.75rem/1 var(--font-display); }
.plan-price s { color: var(--muted); }
@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { border-inline-start: 0; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: 0; }
  .plan-head p { min-height: 0; }
}

/* ------------------------------------------------------------------ dashboard */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.is-reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.is-reverse > :first-child { order: 0; } }
/* the screenshots float in 3D: the phone and the certificate stand at an angle, a little apart in depth, and turn
   toward the pointer (or with the scroll on a touch screen); with reduced motion they keep their pose */
.shot { margin: 0; perspective: 1500px; perspective-origin: 50% 35%; position: relative; }
.shot::after {
  content: ""; position: absolute; inset: auto 8% -6% 8%; height: 22%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sage) 22%, transparent), transparent);
  filter: blur(12px);
}
.shot-stage {
  --tilt-x: 4deg; --tilt-y: -13deg;
  display: flex; justify-content: center; gap: 18px; align-items: flex-end; transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[dir="rtl"] .shot-stage { --tilt-y: 13deg; }
.shot.is-tracking .shot-stage { transition-duration: 0.18s; }
.shot img {
  border-radius: 22px; border: 1px solid var(--line-2); background: var(--ink-2);
  box-shadow: 0 50px 90px -30px var(--shadow), 0 0 0 1px color-mix(in srgb, var(--bone) 3%, transparent);
}
.shot .phone { width: min(300px, 70%); transform: translateZ(0); }
.shot .cert { width: min(260px, 46%); border-radius: var(--radius); margin-bottom: 36px; transform: translateZ(70px); }
.shot .cert-large { transform: translateZ(0); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.checks .icon { width: 22px; height: 22px; color: var(--sage); margin-top: 0.25em; }

/* ------------------------------------------------------------------ payouts: rulers of days */
.rulers { display: grid; gap: 28px; }
.ruler h3 { font-size: var(--step-1); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ruler h3 small { font: 500 var(--step--1)/1.5 var(--font-text); color: var(--muted); }
.ruler svg { display: block; width: 100%; height: auto; margin-top: 10px; }
.ruler .axis { stroke: var(--line-2); stroke-width: 1.5; }
.ruler .day { stroke: var(--line); stroke-width: 1; }
.ruler .pay { fill: var(--sage); }
.ruler .pay-first { fill: var(--bone); }
.ruler .start { fill: var(--ink); stroke: var(--bone-2); stroke-width: 2; }
.ruler text { fill: var(--muted); font-size: 10px; font-family: var(--font-text); }
.ruler text.is-pay { fill: var(--bone); font-weight: 600; }
.payout-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.payout-terms div { border-top: 2px solid var(--bone); padding-top: 14px; }
.payout-terms b { display: block; font: 700 var(--step-1)/1.4 var(--font-display); }
.payout-terms p { margin-top: 6px; color: var(--bone-2); font-size: 0.9688rem; }
@media (max-width: 760px) { .payout-terms { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ rules in short */
.rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; }
.rule-list > div { padding-block: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.rule-list dt { font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.rule-list dt span { color: var(--sand); font-weight: 600; white-space: nowrap; }
.rule-list dd { margin: 0; color: var(--bone-2); font-size: 0.9688rem; }
@media (max-width: 760px) { .rule-list { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2); box-shadow: var(--edge); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9688rem; }
table.data th, table.data td { padding: 14px 18px; text-align: start; border-top: 1px solid var(--line); vertical-align: middle; }
/* the head names the columns in the weight of a title; the first column names the rows, quieter */
table.data thead th { border-top: 0; padding-block: 16px; color: var(--bone); font: 700 1rem/1.5 var(--font-display); white-space: nowrap;
  background: color-mix(in srgb, var(--bone) 3%, transparent); }
table.data tbody th { color: var(--bone-2); font-weight: 500; }
table.data tbody tr:hover > * { background: color-mix(in srgb, var(--bone) 3%, transparent); }
/* a column that is the firm's own pick among the others */
table.data :is(th, td).is-pick { background: color-mix(in srgb, var(--bone) 5%, transparent); }
table.data thead th.is-pick { box-shadow: inset 0 2px 0 var(--bone); }
table.data td.is-target { color: var(--sage); font-weight: 600; }
table.data td.is-limit { color: var(--limit-text); font-weight: 600; }
table.data td.is-muted { color: var(--muted); }
table.data .end { text-align: end; }
/* the plans side by side end in a row of buttons, one under each plan */
table.compare tfoot td, table.compare tfoot th { padding-block: 16px 18px; }
table.compare tfoot .btn { white-space: nowrap; }
@media (max-width: 620px) {
  /* on a phone the three plans still stand side by side: even columns, the words in the middle of each, and the
     rule's name small at the side (nothing to swipe) */
  .table-scroll:has(> .compare) { overflow-x: visible; }
  table.compare { table-layout: fixed; font-size: 0.8125rem; }
  table.compare th, table.compare td { padding: 11px 4px; text-align: center; line-height: 1.65; overflow-wrap: anywhere; }
  table.compare thead th { padding-block: 13px; font-size: 0.875rem; white-space: normal; line-height: 1.5; }
  table.compare thead th:first-child, table.compare tbody th, table.compare tfoot th { width: 25%; padding-inline: 10px 4px; text-align: start;
    font-size: 0.75rem; }
  table.compare tfoot .btn { min-height: 38px; padding: 0.3em 0.7em; font-size: 0.8125rem; white-space: normal; }
}

/* ------------------------------------------------------------------ the top traders (includes/board.html): the
   first three on a podium, the rest as rows; on a phone a column of cards, nothing to scroll sideways */
.board { display: grid; gap: 16px; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.podium-place { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--ink-2); }
.podium-place.is-1 { order: 2; padding-block: 32px 34px; border-color: var(--line-2);
  background: linear-gradient(168deg, color-mix(in srgb, var(--bone) 9%, var(--ink-2)) 0%, var(--ink-2) 58%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bone) 11%, transparent), 0 44px 60px -46px var(--shadow); }
.podium-place.is-2 { order: 1; }
.podium-place.is-3 { order: 3; }
.podium-rank { display: inline-flex; align-items: center; gap: 8px; color: var(--bone-2); }
.podium-rank .icon { width: 30px; height: 30px; }
.podium-rank b { font: 800 1.5rem/1 var(--font-display); }
.podium-place.is-1 .podium-rank { color: var(--sand); }
.podium-place.is-3 .podium-rank { color: color-mix(in srgb, var(--sand) 45%, var(--muted)); }
.podium-name { margin-top: 12px; font: 800 1.25rem/1.5 var(--font-display); overflow-wrap: anywhere; }
.podium-meta, .podium-days { color: var(--muted); font-size: 0.875rem; }
.podium-profit { margin-top: 10px; color: var(--sage); font: 800 clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem)/1.3 var(--font-display); }
[dir="rtl"] .podium-profit, [dir="rtl"] .board-profit { text-align: right; }
.board-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); overflow: hidden; }
.board-rows li { display: grid; grid-template-columns: 40px minmax(0, 1.1fr) minmax(60px, 1fr) minmax(5.5em, auto) minmax(7em, auto); gap: 18px;
  align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.board-rows li:first-child { border-top: 0; }
.board-rank { color: var(--muted); font: 800 1.125rem/1 var(--font-display); text-align: center; }
.board-who { min-width: 0; }
.board-who b { display: block; font-weight: 600; }
.board-who small { color: var(--muted); font-size: var(--step--1); }
/* a row the team entered by hand says so, quietly, beside the name */
.board-hand { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted); font: 500 0.75rem/1.75 var(--font-text); white-space: nowrap; vertical-align: middle; }
.board-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.board-bar i { display: block; height: 100%; min-width: 4px; border-radius: 3px; background: var(--sage); }
.board-profit { color: var(--sage); font: 800 1.0625rem/1.3 var(--font-display); white-space: nowrap; }
.board-days { color: var(--muted); font-size: 0.875rem; text-align: end; white-space: nowrap; }
@media (max-width: 760px) {
  .board { gap: 10px; }
  .podium { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .podium-place, .podium-place.is-1 { order: 0; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 14px; align-items: center;
    padding: 14px 16px; border-radius: 16px; }
  .podium-rank { grid-row: span 2; }
  .podium-rank .icon { width: 26px; height: 26px; }
  .podium-rank b { font-size: 1.25rem; }
  .podium-name { margin: 0; font-size: 1.0625rem; }
  .podium-meta { grid-column: 2; grid-row: 2; font-size: 0.8125rem; }
  .podium-profit { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 1.35rem; }
  .podium-days { display: none; }
  .board-rows { border-radius: 16px; }
  .board-rows li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; }
  .board-bar, .board-days { display: none; }
}

/* ------------------------------------------------------------------ questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding-block: 20px; font-weight: 600; font-size: 1.0938rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding-bottom: 22px; color: var(--bone-2); max-width: 46rem; }
.faq-topics { display: grid; gap: clamp(40px, 5vw, 64px); }
.faq-topics h2 { font-size: var(--step-2); margin-bottom: 14px; }

/* ------------------------------------------------------------------ articles */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card { display: grid; grid-template-rows: auto 1fr; gap: 16px; text-decoration: none; color: inherit; }
.card-media { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media.is-empty { position: relative; display: grid; place-items: end start; padding: 16px 18px; }
.card-media.is-empty svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-media.is-empty .c-up { fill: color-mix(in srgb, var(--sage) 12%, transparent); stroke: var(--sage); stroke-width: 1.2; }
.card-media.is-empty .c-down { fill: color-mix(in srgb, var(--red) 12%, transparent); stroke: var(--red); stroke-width: 1.2; }
.card-media.is-empty .c-line { fill: none; stroke: var(--bone); stroke-width: 2.2; stroke-linejoin: round; opacity: 0.8; }
.card-media.is-empty span { position: relative; font: 700 0.9375rem/1.5 var(--font-text); color: var(--bone-2); background: color-mix(in srgb, var(--ink) 80%, transparent); padding: 2px 10px; border-radius: 4px; }
.card-media.is-empty span:empty { display: none; }
.card:hover .card-media.is-empty .c-line { opacity: 1; }
.card-body { display: grid; gap: 8px; align-content: start; }
.card-meta { color: var(--muted); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.card h3 { font-size: var(--step-1); line-height: 1.6; }
:lang(en) .card h3 { line-height: 1.3; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.card p { color: var(--bone-2); font-size: 0.9688rem; }

/* ------------------------------------------------------------------ call to action */
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.cta-band h2 { font-size: var(--step-3); max-width: 18em; }
.cta-band p { margin-top: 12px; color: var(--bone-2); max-width: 36em; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ------------------------------------------------------------------ inner pages */
.page-head { padding-block: clamp(36px, 6vw, 76px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: var(--step-4); max-width: 18em; }
.page-head .lede { margin-top: 18px; color: var(--bone-2); font-size: 1.1563rem; max-width: 38em; }
.crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 10px; color: var(--line-2); }
.crumbs a { color: var(--bone-2); text-decoration: none; }
.crumbs a:hover { color: var(--bone); }
.page-body { padding-bottom: var(--section); }

/* rich text and content blocks */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.1em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--bone); text-decoration-color: var(--sand); }
.prose strong, .prose b { color: var(--bone); font-weight: 700; }
.prose blockquote { margin-inline: 0; padding-inline-start: 1.2em; border-inline-start: 3px solid var(--line-2); color: var(--bone-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose code { font-size: 0.9em; background: var(--ink-3); padding: 0.1em 0.35em; border-radius: 4px; }
.prose .rich-text > * + * { margin-top: 1.1em; }
.block-wide { max-width: none; }
.blocks > * + * { margin-top: 1.4em; }
.blocks > .block-heading { margin-top: 2.2em; }
.blocks > .block-full { max-width: none; }

.callout { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--ink-2); border-inline-start: 3px solid var(--bone-2); }
.callout.is-rule { border-inline-start-color: var(--sage); }
.callout.is-warning { border-inline-start-color: var(--sand); }
.callout h3 { font-size: 1.0625rem; margin-bottom: 6px; font-family: var(--font-text); }
.callout .rich-text { color: var(--bone-2); }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: var(--step--1); }
.quote { margin: 0; padding: 6px 0; }
.quote p { font: 600 var(--step-2)/1.6 var(--font-display); }
.quote cite { display: block; margin-top: 10px; color: var(--muted); font-style: normal; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--bone-2); font: 800 1rem/1 var(--font-display);
}
:lang(fa) .steps li::before { content: counter(s, persian); }
.steps b { display: block; }
.steps p { color: var(--bone-2); margin-top: 4px; font-size: 0.9688rem; }

/* challenges page: the plan picker */
.picker { display: grid; gap: 28px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg legend { width: 100%; margin-bottom: 10px; color: var(--muted); font-size: var(--step--1); padding: 0; }
.seg-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4em 1.1em; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--bone-2); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.seg-link:hover { color: var(--bone); border-color: var(--bone-2); }
.seg-link.is-on { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.seg-link.is-off { opacity: 0.45; text-decoration: line-through; text-decoration-thickness: 1px; }
.plan-panel { display: grid; gap: 22px; }
.plan-panel[hidden] { display: none; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4em 1.05em; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); color: var(--bone-2); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.seg input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.seg input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.seg span small { font-weight: 500; opacity: 0.8; margin-inline-start: 0.5em; }
.quote-box {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center;
  padding: clamp(20px, 3vw, 30px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--edge);
}
.quote-box .price b { font: 800 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1 var(--font-display); }
.quote-box .price s { color: var(--muted); margin-inline-start: 10px; }
.quote-box .price p { color: var(--muted); font-size: var(--step--1); margin-top: 8px; }
@media (max-width: 640px) { .quote-box { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ forms */
/* what is marked hidden is hidden, whatever its class says about how it is laid out */
[hidden] { display: none !important; }
/* a group of fields has no frame of its own (browsers draw one unless told) */
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
.form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field legend { font-weight: 600; font-size: 0.9688rem; }
.field .help { color: var(--muted); font-size: var(--step--1); }
.field .error, .form-error { color: var(--red-text); font-size: 0.9375rem; }
.form-error { padding: 12px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--red) 12%, var(--ink)); border: 1px solid color-mix(in srgb, var(--red) 40%, var(--ink)); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="password"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 1rem/1.5 var(--font-text); color: var(--bone);
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--sand); outline-offset: 1px; border-color: transparent; }
input::placeholder, textarea::placeholder { color: var(--muted); }
/* a field the browser filled from its saved names and passwords keeps the field's own ground and ink. Browsers
   paint such a field in a pale colour of their own, which on these pages reads as a field in some other state.
   (Two rules: a browser that does not know one of the two names drops the whole rule it stands in.) */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, select:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--bone); caret-color: var(--bone);
  -webkit-box-shadow: inset 0 0 0 100px var(--ink-3); box-shadow: inset 0 0 0 100px var(--ink-3);
}
input:autofill, select:autofill, textarea:autofill { filter: none; }
input[type="file"] { width: 100%; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--ink-2); color: var(--bone-2); font: inherit; font-size: 0.9375rem; }
/* a picture to upload: the site's own face over the browser's input (only when the script can name the file) */
.file-pick { position: relative; }
.file-pick-face { display: none; }
.js .file-pick-face {
  display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; min-height: 56px; padding: 12px 16px;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--ink-3); color: var(--bone-2);
  font-size: 0.9375rem; pointer-events: none;
}
.js .file-pick-face .icon { width: 22px; height: 22px; color: var(--bone-2); flex: none; }
.js .file-pick-face b { color: var(--bone); font-weight: 700; }
.js .file-pick-face [data-file-name] { color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.js .file-pick.has-file .file-pick-face { border-style: solid; border-color: color-mix(in srgb, var(--sage) 55%, var(--ink)); }
.js .file-pick.has-file [data-file-name] { color: var(--bone-2); }
.js .file-pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.js .file-pick:hover .file-pick-face { border-color: var(--bone-2); }
.js .file-pick:focus-within .file-pick-face { outline: 2px solid var(--sand); outline-offset: 2px; }
.has-error .file-pick-face { border-color: var(--red-text); }
input[aria-invalid="true"], .field.has-error input { border-color: var(--red-text); }
.choices { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.choices.is-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
/* choices that carry a logo beside a name (the trading platforms) need a wider card than a plan or a size: in the
   narrow one «MetaTrader 5» left its card and lay over its neighbour */
.choices.is-row.is-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; background: var(--ink-2); }
.choice:hover { border-color: var(--bone-2); }
.choice input { margin: 0.35em 0 0; accent-color: var(--bone); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--bone); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--bone); }
.choice:has(input:focus-visible) { outline: 2px solid var(--sand); outline-offset: 2px; }
.choice b { display: block; font-weight: 700; }
/* the words of a choice give way before they leave it: they wrap inside the card, whatever its width */
.choice > span:last-child { min-width: 0; overflow-wrap: anywhere; }
/* a platform's logo in its choice, before the name: the logo itself on the card's own ground, no tile behind it
   (the site's own logos are cut free of their ground; one the team uploads with a ground of its own fills this
   rounded frame, and so is its own tile) */
.choice-logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; }
.choice-logo img { width: 100%; height: 100%; object-fit: contain; }
.choice small { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 2px; }
@media (max-width: 620px) {
  /* on a phone the short choices (plan, size, platform) stand three to a row as plain tiles: the chosen one is the
     one with the white frame, so the round mark is not drawn (it is still there for the keyboard) */
  .choices.is-row { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
  .choices.is-row .choice { justify-content: center; padding: 12px 8px; text-align: center; }
  .choices.is-row .choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
  .choices.is-row .choice { flex-wrap: wrap; }
  .choices.is-row .choice b { font-size: 0.9688rem; }
  .choices.is-row .choice small { font-size: 0.8125rem; }
}
/* a choice that is not there yet (a trading platform marked "soon"): shown, not chosen */
.choice.is-soon { cursor: default; opacity: 0.62; border-style: dashed; }
.choice.is-soon:hover { border-color: var(--line-2); }
/* the wallet, when it does not hold the whole total: shown, with the reason, but not to be chosen */
.choice.is-short { cursor: default; opacity: 0.62; }
.choice.is-short:hover { border-color: var(--line-2); }

/* account options: each a row with what it is, what it adds, and (folded) what exactly it changes */
.option-list { display: grid; gap: 10px; }
.option { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--ink-2); }
.option:hover { border-color: var(--bone-2); }
.option:has(input:checked) { border-color: var(--bone); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--bone); }
.option:has(input:focus-visible) { outline: 2px solid var(--sand); outline-offset: 2px; }
.option-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; cursor: pointer; }
.option-main input { margin: 0.3em 0 0; accent-color: var(--bone); width: 18px; height: 18px; }
.option-text b { font-weight: 700; }
.option-text small { display: block; color: var(--bone-2); font-size: var(--step--1); margin-top: 2px; }
.option-badge { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--bone-2); font-size: 0.75rem; font-weight: 600; vertical-align: 0.1em; }
.option-price { text-align: end; white-space: nowrap; }
.option-price b { display: block; font-weight: 700; }
.option-price small { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 2px; }
.option-more { padding: 0 16px 12px; padding-inline-start: 46px; font-size: var(--step--1); }
.option-more summary { cursor: pointer; color: var(--muted); width: fit-content; }
.option-more summary:hover { color: var(--bone); }
.option-more p { margin: 8px 0 0; color: var(--bone-2); max-width: 60ch; }
@media (max-width: 620px) {
  .option-list { gap: 8px; }
  .option-main { gap: 10px; padding: 12px 12px 10px; }
  .option-text small { font-size: 0.8125rem; line-height: 1.7; }
  .option-price b { font-size: 0.9375rem; }
  .option-more { padding: 0 12px 10px; padding-inline-start: 40px; font-size: 0.8125rem; }
}

/* a discount code: the field, the button that tries it, and one line that says what it took off */
.code-row { display: flex; gap: 10px; align-items: stretch; max-width: 460px; }
.code-row input { flex: 1; min-width: 0; font: 600 1rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.code-row .btn { flex: none; min-height: 50px; }
.code-ok { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; margin: 0; color: var(--sage); font-size: 0.9375rem; font-weight: 600; }
.code-ok[hidden] { display: none; }
.code-ok .icon { width: 18px; height: 18px; flex: none; }
.code-remove { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.code-remove:hover { color: var(--bone); }
.summary .sum-discount dt, .summary .sum-discount dd { color: var(--sage); }
.summary .sum-discount bdi { display: inline-block; margin-inline-start: 4px; padding: 1px 7px; border: 1px dashed color-mix(in srgb, var(--sage) 60%, transparent); border-radius: 6px; font: 600 0.75rem/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.05em; }
/* giving up an order nobody paid for: a quiet line at the foot of its page that opens the button */
.order-cancel { margin-top: 20px; color: var(--muted); font-size: 0.9375rem; }
.order-cancel summary { width: fit-content; cursor: pointer; }
.order-cancel summary:hover { color: var(--bone); }
.order-cancel p { margin: 10px 0 12px; max-width: 58ch; color: var(--bone-2); }

/* the button that places the order; on a phone it stays in sight, with the total beside it */
.buy-submit { display: flex; align-items: center; gap: 16px; }
.buy-total { display: none; margin: 0; }
.buy-total span { display: block; color: var(--muted); font-size: var(--step--1); }
.buy-total b { font: 800 1.25rem/1.2 var(--font-display); }
@media (max-width: 900px) {
  .buy-submit { position: sticky; bottom: 0; z-index: 5; justify-content: space-between; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--ink); border-top: 1px solid var(--line); }
  .buy-total { display: block; }
  /* on a preview the bar of choices sits at the bottom: the row keeps clear of it */
  body:has(.preview-bar:not(.is-plain)) .buy-submit { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
.summary .sum-option dt, .summary .sum-option dd { font-weight: 400; color: var(--bone-2); font-size: var(--step--1); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0.25em 0 0; accent-color: var(--bone); flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.summary { position: sticky; top: 96px; padding: 24px; background: var(--surface); -webkit-backdrop-filter: var(--surface-blur); backdrop-filter: var(--surface-blur); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--edge); display: grid; gap: 16px; }
.summary h2 { font-size: var(--step-1); }
.summary dl { margin: 0; display: grid; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-top: 1px solid var(--line); font-size: 0.9688rem; }
.summary dl div[hidden] { display: none; }
.summary dt { color: var(--bone-2); }
.summary dd { margin: 0; font-weight: 600; text-align: end; }
.summary .total { font: 800 1.6rem/1 var(--font-display); }
.box { padding: clamp(20px, 3vw, 28px); background: var(--surface); -webkit-backdrop-filter: var(--surface-blur); backdrop-filter: var(--surface-blur); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--edge); }
.box + .box, .box + .notice { margin-top: 20px; }
.box h2 { font-size: var(--step-1); margin-bottom: 14px; }

/* the order page */
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.progress li { padding-top: 12px; border-top: 3px solid var(--line-2); color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.progress li.is-done { border-top-color: var(--sage); color: var(--bone-2); }
.progress li.is-now { border-top-color: var(--bone); color: var(--bone); }
@media (max-width: 560px) { .progress { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } }
.copy-row { display: flex; gap: 10px; align-items: stretch; }
.copy-row code {
  flex: 1; min-width: 0; padding: 12px 14px; background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: 600 0.9688rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; overflow-wrap: anywhere; direction: ltr; text-align: left;
}
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 48px; background: transparent; color: var(--bone); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; font: 600 0.9375rem/1 var(--font-text); }
.copy-btn:hover { border-color: var(--bone-2); }
.copy-btn.is-done { color: var(--sage); border-color: var(--sage); }
.pay-grid { display: grid; gap: 18px; }
.pay-grid dt { color: var(--muted); font-size: var(--step--1); margin-bottom: 6px; }
.pay-grid dd { margin: 0; }
.notice { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--ink-2); }
.notice.is-ok { border-color: color-mix(in srgb, var(--sage) 50%, var(--ink)); background: color-mix(in srgb, var(--sage) 9%, var(--ink)); }
.notice.is-warn { border-color: color-mix(in srgb, var(--sand) 50%, var(--ink)); background: color-mix(in srgb, var(--sand) 9%, var(--ink)); }
.notice.requote { margin-top: 16px; display: grid; gap: 12px; justify-items: start; }
.notice.requote p { margin: 0; }

/* pagination */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; list-style: none; padding: 0; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); text-decoration: none; color: var(--bone-2); }
.pager [aria-current] { background: var(--bone); color: var(--ink); border-color: var(--bone); font-weight: 700; }
.pager a:hover { border-color: var(--bone-2); color: var(--bone); }
.pager .pager-gap { border-color: transparent; min-width: 20px; padding-inline: 0; color: var(--muted); }
@media (max-width: 420px) {            /* seven places (1 … 4 5 6 … 30) stay on one line of a small phone */
  .pager { gap: 6px; }
  .pager a, .pager span { min-width: 40px; height: 40px; padding-inline: 8px; }
  .pager .pager-gap { min-width: 14px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 36px; }
.chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--bone-2); text-decoration: none; font-size: 0.9375rem; }
.chips a[aria-current] { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* the article */
.article-head { padding-block: clamp(32px, 5vw, 64px) 28px; }
.article-head h1 { font-size: var(--step-3); max-width: 22em; }
.article-meta { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.article-cover { margin: 0 0 clamp(28px, 4vw, 48px); }
.article-cover img { width: 100%; border-radius: var(--radius); }

/* ------------------------------------------------------------------ the rules page: each plan's own rules as
   questions (the visitor chooses the plan), then the rules every account shares, as questions too */
.rules { display: grid; gap: clamp(52px, 7vw, 92px); max-width: 980px; }
.rules-head { display: grid; gap: 8px; margin-bottom: 22px; }
.rules-head h2 { font-size: var(--step-3); }
.rules-head p { color: var(--bone-2); font-size: 1.0625rem; }
.rules-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.rules-tab { display: grid; padding: 14px 18px 15px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2);
  text-decoration: none; transition: border-color 0.15s ease; }
.rules-tab:hover { border-color: var(--bone-2); }
.rules-tab b { color: var(--bone); font: 800 1.125rem/1.6 var(--font-display); }
.rules-tab span { color: var(--muted); font-size: var(--step--1); }
.rules-tab.is-on { background: var(--bone); border-color: var(--bone); }
.rules-tab.is-on b { color: var(--ink); }
.rules-tab.is-on span { color: color-mix(in srgb, var(--ink) 72%, var(--bone)); }
.rules-picker { gap: 16px; }
.rules-panel { gap: 16px; }
.rules-qa { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: rule; }
.rules-qa > li { counter-increment: rule; min-width: 0; }
.rules-qa details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); scroll-margin-top: 96px; }
.rules-qa details[open] { border-color: var(--line-2); background: var(--panel); box-shadow: var(--edge); }
.rules-qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 36px minmax(0, 1fr) 22px; gap: 14px; align-items: center;
  padding: 15px 18px; font-weight: 700; font-size: 1.0625rem; }
.rules-qa summary::-webkit-details-marker { display: none; }
.rules-qa summary:hover .rules-no { border-color: var(--bone-2); }
.rules-no { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--bone); font: 800 1rem/1 var(--font-display); }
.rules-no::before { content: counter(rule); }
:lang(fa) .rules-no::before { content: counter(rule, persian); }
.rules-qa details[open] .rules-no { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.rules-qa summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform 0.2s ease; }
.rules-qa details[open] summary .icon { transform: rotate(180deg); }
.rules-answer { max-width: none; padding: 2px 18px 20px; padding-inline-start: 68px; color: var(--bone-2); }
.rules-answer > p + p { margin-top: 0.55em; }
/* a plan's answer says the number first, then how it is counted */
.rules-answer:not(.prose) > p:first-child { color: var(--bone); font-weight: 600; font-size: 1.0625rem; }
.rules-answer.prose > * { max-width: 46rem; }
.rules-preface { max-width: none; margin-bottom: 18px; }
.rules-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; color: var(--bone-2); }
.rules-go b { color: var(--bone); font: 800 1.125rem/1.4 var(--font-display); }
@media (max-width: 620px) {
  .rules-tabs { gap: 8px; }
  .rules-tab { padding: 11px 10px 12px; text-align: center; }
  .rules-tab b { font-size: 1rem; }
  .rules-qa summary { grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 10px; padding: 13px 14px; font-size: 1rem; }
  .rules-no { width: 30px; height: 30px; font-size: 0.875rem; }
  .rules-answer { padding: 0 14px 16px; }
}

.muted { color: var(--muted); }
.split.is-top { align-items: start; }
.shot .cert-large { width: 100%; border-radius: var(--radius); }
.table-note { margin-top: 10px; color: var(--muted); font-size: var(--step--1); }
.plan-rules h3 { font-size: var(--step-1); margin-bottom: 12px; }
.page-extra { margin-top: 40px; }
.cta-inline { display: grid; gap: 10px; }
.cta-inline h3 { font-size: var(--step-1); }
.field.is-wide { grid-column: 1 / -1; }
.block-faq > h2 { margin-bottom: 8px; }
.steps-block h3 { font-size: var(--step-1); margin-bottom: 16px; }
.payment-note { margin-top: 16px; font-size: 0.9375rem; color: var(--bone-2); }
.summary .muted, .summary .sample-note { font-size: var(--step--1); }
.form .notice a { color: var(--bone); }
.lede .rich-text p, .lede p { margin: 0; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); color: var(--bone-2); font-size: 0.9688rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand p { margin-top: 16px; max-width: 26em; }
.site-footer h2 { font: 700 0.9688rem/1.4 var(--font-text); color: var(--bone); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: var(--bone-2); }
.site-footer a:hover { color: var(--bone); text-decoration: underline; }
.contact-list { list-style: none; margin: 20px 0 0 !important; padding: 0; display: grid; gap: 10px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; color: var(--bone-2); text-decoration: none; }
.contact-list a:hover { color: var(--bone); }
.footer-risk { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-risk p { color: var(--muted); font-size: var(--step--1); max-width: 60rem; }
/* «سلب مسئولیت»: the firm's disclaimer, whole, on every page; two columns where there is room for them */
.footer-disclaimer { margin-top: 28px; }
.footer-disclaimer h2 { margin-bottom: 12px; color: var(--bone-2); }
.footer-disclaimer div { columns: 2 24rem; column-gap: clamp(28px, 4vw, 56px); }
.footer-disclaimer p { margin: 0 0 0.9em; max-width: none; break-inside: avoid; text-align: justify; line-height: 2; }
:lang(en) .footer-disclaimer p { text-align: start; line-height: 1.75; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; padding-block: 24px 36px; color: var(--muted); font-size: var(--step--1); }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-base .legal { margin-inline-end: auto; }
.langs span { color: var(--bone); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) {
  /* a phone: one column, read from the middle like the page above it (the legal text under it keeps its own setting) */
  .footer-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-brand .contact-list { justify-items: center; }
  .footer-base { justify-content: center; text-align: center; }
  .footer-base ul { justify-content: center; }
  .footer-base .legal { margin-inline-end: 0; }
}

/* 404 */
.lost { padding-block: clamp(64px, 12vw, 160px); }
.lost h1 { font-size: var(--step-4); }
.lost p { margin-top: 16px; color: var(--bone-2); max-width: 32em; }
.lost .actions { margin-top: 28px; display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .announce, .hero-figure { display: none; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------------------------ the living background
   A WebGL scene fixed behind the page (js/backdrop.js); the team picks it in the site settings. Without it (no
   WebGL, or "none") the page still is not flat: two faint pools of light, the target's green and the limit's red. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70vmax 46vmax at 88% -8%, color-mix(in srgb, var(--sage) 9%, transparent), transparent 62%),
    radial-gradient(60vmax 40vmax at 6% 108%, color-mix(in srgb, var(--red) 8%, transparent), transparent 60%);
}
html.has-backdrop { background: var(--ink); }
html.has-backdrop body { background: transparent; }
html.has-backdrop body::before { display: none; }
.backdrop { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; display: block; pointer-events: none; }
.backdrop[hidden] { display: none; }
/* on a page for reading the scene is the head of the page: it thins out toward the bottom of the screen, where the
   words are, and js/backdrop.js fades it away as the page is scrolled */
html:is([data-backdrop-mode="calm"], [data-backdrop-mode="quiet"]) .backdrop {
  -webkit-mask-image: linear-gradient(to bottom, #000 34%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 34%, transparent 80%);
}

/* over the scene, panels turn to tinted glass so it shows between and faintly through them */
html.has-backdrop {
  --surface: color-mix(in srgb, var(--ink-2) 68%, transparent);
  --surface-blur: blur(14px) saturate(1.2);
}
html.has-backdrop .site-header { background: color-mix(in srgb, var(--ink) 55%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25); }
html.has-backdrop .section.is-raised { background: color-mix(in srgb, var(--ink-2) 30%, transparent);
  border-color: color-mix(in srgb, var(--line) 55%, transparent); }
html.has-backdrop :is(.plans, .hero-figure.is-live .hud, .callout, .quote-box, .notice) {
  background: var(--surface); -webkit-backdrop-filter: var(--surface-blur); backdrop-filter: var(--surface-blur);
}
html.has-backdrop .plan.is-featured { background: color-mix(in srgb, var(--ink-3) 62%, transparent); }
html.has-backdrop table.data thead th { background: color-mix(in srgb, var(--ink-2) 70%, transparent); }
html.has-backdrop .site-footer { background: color-mix(in srgb, var(--ink) 72%, transparent); }
@media (max-width: 900px) {
  html.has-backdrop .nav { background: color-mix(in srgb, var(--ink) 88%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
/* a device that asks for less transparency gets the solid panels back */
@media (prefers-reduced-transparency: reduce) {
  html.has-backdrop { --surface: var(--ink-2); --surface-blur: none; }
}

/* the home page's hero when the background is the corridor: the picture's box turns into a window onto the scene
   (the WebGL corridor is framed inside it); the plan buttons, the slider and the readout stay where they were */
.hero-figure.is-backdrop .corridor, .hero-figure.is-backdrop .corridor-label { visibility: hidden; }
.hero-figure.is-backdrop .corridor-view { touch-action: pan-y; cursor: ew-resize; }
.bd-tag {
  position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; white-space: nowrap;
  padding: 3px 9px; border-radius: 6px; font-size: 0.8125rem; font-weight: 600; line-height: 1.5;
  background: color-mix(in srgb, var(--ink) 78%, transparent); border: 1px solid currentColor;
  will-change: transform;
}
.bd-tag.is-target { color: var(--sage); }
.bd-tag.is-limit { color: var(--red-text); }
.bd-tag.is-daily { color: var(--sand); }
.bd-tag[hidden] { display: none; }

/* the phone and the certificate side by side never push the page wider than a phone */
.shot img { min-width: 0; }
@media (max-width: 560px) {
  .shot .phone { width: 56%; } .shot .cert { width: 37%; transform: translateZ(40px); }
  .shot-stage { --tilt-y: -9deg; gap: 12px; } [dir="rtl"] .shot-stage { --tilt-y: 9deg; }
}
/* the hero's words stay easy to read over the scene: a soft pool of the page's ink behind them */
html.has-backdrop .hero-copy { position: relative; z-index: 0; isolation: isolate; }
html.has-backdrop .hero-copy::before {
  content: ""; position: absolute; inset: -22% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 86%, transparent) 40%, transparent);
}

/* ------------------------------------------------------------------ a preview's choices side by side
   On a preview only (includes/preview_bar.html): the phone view, and while the firm is still choosing
   (PREVIEW_CHOICES) the palettes on every page and on the home page its designs. It
   keeps to the bottom, clear of the admin's own button at the bottom left (raised above it on phones), and the page
   ends with room for it, so it never hides the footer's links. Its own colours are fixed (it is a tool, not part of
   the page it shows), so it reads the same over every palette.
   It is one row at every width, so it never grows over the page it shows: when the choices do not fit, the names
   of the ready palettes go first (below), and narrower than that the row is scrolled sideways. */
.preview-bar {
  position: fixed; z-index: 60; inset-inline: 0; margin-inline: auto; width: fit-content;
  max-width: calc(100vw - 24px); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  padding: 7px 9px; border: 1px solid #3b3b42; border-radius: 16px;
  background: rgba(17, 17, 19, 0.94); color: #c9c7c3; box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  font-size: 0.8438rem; color-scheme: dark;
}
.preview-bar::-webkit-scrollbar { display: none; }
.preview-bar > * { flex: none; }
.preview-bar-label { color: #8d8b87; padding-inline: 6px 2px; white-space: nowrap; }
.preview-bar a.pb-all { min-height: 0; padding: 0; padding-inline: 6px 2px; border: 0; font-weight: 400; color: #8d8b87; text-decoration: underline; text-underline-offset: 0.25em; }
.preview-bar a.pb-all:hover { color: #fff; }
.preview-bar a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border-radius: 10px;
  border: 1px solid #3b3b42; color: #d6d4d0; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.preview-bar a:hover { color: #fff; border-color: #8d8b87; }
.preview-bar a[aria-current="true"] { background: #f2f0ec; border-color: #f2f0ec; color: #111113; }
.preview-bar-gap { width: 1px; align-self: stretch; margin-inline: 4px; background: #3b3b42; }
/* "Phone view" (core.views.phone_view): for a computer's screen only; a phone already is one */
.pb-phone-icon { width: 9px; height: 15px; border: 1.5px solid currentColor; border-radius: 3px; flex: none; }
@media (max-width: 760px) { .preview-bar .pb-phone, .preview-bar .pb-phone-gap { display: none; } }
/* With the choices made it is that one button: a small pill in the corner where the page's lines end (the left, in
   Persian). There it stands on none of the page's middle (a sign-in card, a table, a button would be under it) and
   clear of the admin's own button, which Wagtail puts in the corner where the lines start ("bottom-left" is its
   name for that side whatever the language). On a phone nothing at all. */
.preview-bar.is-plain { inset-inline: auto 14px; margin-inline: 0; padding: 5px; border-radius: 14px; }
.preview-bar.is-plain.is-raised { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }      /* nothing to rise over */
@media (max-width: 760px) { .preview-bar.is-plain { display: none; } }
.pb-dots { display: inline-flex; }
.pb-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #77757a; margin-inline-start: -4px; }
.pb-dots i:first-child { margin-inline-start: 0; }
body:has(.preview-bar:not(.is-plain)) .footer-base { padding-bottom: 128px; }
@media (min-width: 761px) { body:has(.preview-bar.is-plain) .footer-base { padding-bottom: 84px; } }
/* The names of the ready palettes, while the row has room for them. Without room each keeps its three dots and its
   name as a tooltip, and the one in use keeps its name. The row is at its widest on the home page (which adds its
   designs) and in English, so that is where the names go first. */
.pb-palette .pb-name { display: var(--pb-names, inline); }
.pb-palette[aria-current="true"] .pb-name { display: inline; }
@media (max-width: 1479px) { .preview-bar { --pb-names: none; } }
@media (max-width: 1739px) { :lang(en) .preview-bar { --pb-names: none; } }
@media (max-width: 1789px) { .preview-bar.has-designs { --pb-names: none; } }
@media (max-width: 2119px) { :lang(en) .preview-bar.has-designs { --pb-names: none; } }
@media (max-width: 1100px) {      /* with the home page's designs in it, the row is drawn tighter a little sooner */
  .preview-bar.has-designs { gap: 4px; padding: 6px; font-size: 0.8125rem; }
  .preview-bar.has-designs a, .preview-bar.has-designs .pb-own { min-height: 34px; padding: 0 8px; }
}
@media (max-width: 860px) {
  .preview-bar { gap: 4px; padding: 6px; font-size: 0.8125rem; border-radius: 14px; }
  .preview-bar.is-raised { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .preview-bar-label { display: none; }
  .preview-bar-gap { margin-inline: 1px; }
  .preview-bar a { min-height: 34px; padding: 0 8px; }
  body:has(.preview-bar:not(.is-plain)) .footer-base { padding-bottom: 150px; }
}
@media print { .preview-bar { display: none; } }
