/* Ostrich Prop — the landing (pages/home_page_landing.html), and the pieces of it other pages share: the chooser
   (the challenges page) and the payout certificates (/payouts/). Loaded after site.css and scene.css.
   The 3D scene of the other designs runs behind the whole page; here it is one picture, kept inside the first
   screen. After it the page is built of panels on the page's own ground: each a little raised, lit from above, with
   a hairline for an edge. Colour still means something (green a target or a payout); the firm's accent is kept for
   the buttons that start a challenge, so a section's own choices are drawn in the colour of the words instead.
   Written with the palette's tokens only, so it reads the same way in every palette, light or dark.
   What moves is in js/landing.js: the four steps open one after another as the page is scrolled, the dashboard's
   picture draws itself once, the reviews drift. Without the script (or for a visitor who asked for less motion)
   everything is simply there. */

:root {
  --ld-r: 22px;                                                         /* a large panel's corner */
  --ld-h2: clamp(1.5rem, 0.94rem + 2.3vw, 2.65rem);                     /* a section's title: one line of the page */
}

/* ------------------------------------------------------------------ the first screen
   The words and, in the room they leave, the firm's ostrich: beside them, on a narrow screen above them. That room
   is laid out here, by the page itself, so it is the same place before any script has come and after. The mark's
   own line waits in it; the scene's canvas (js/scene.js: the ostrich as a net of light) takes that place when its
   script is there. On a slow line that can be many seconds, and the first screen is never half empty meanwhile. */
.is-landing { --head: 72px; }                                   /* the header's height */
@media (max-width: 900px) { .is-landing { --head: 64px; } }
.is-landing .sc-hero { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: center;
  min-height: calc(100svh - var(--head)); }
.is-landing .sc-hud { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* the words keep to a little over half the screen, so the figure always has a place */
.is-landing .sc-hero .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, min(660px, 56vw)) minmax(0, 1fr);
  column-gap: 44px; align-items: center; }
.is-landing .sc-hero .sc-copy { grid-column: 1; grid-row: 1; max-width: none; z-index: 1; }
/* its room runs a little past the page's column (the figure's outermost point is a thin tip, the tail, so its
   body still stands on the column's edge): by 60px where the screen has that much beside the column, and never
   nearer than 16px to the screen's own edge */
.ld-figure-room { grid-column: 2; grid-row: 1; min-width: 0; display: grid; place-items: center; pointer-events: none;
  margin-inline-end: calc(-1 * min(60px, (100vw - min(100vw, var(--wrap))) / 2 + var(--gutter) - 16px)); }
/* as large as the room allows, never taller than what is seen of the first screen before any scrolling */
.ld-figure { position: relative; aspect-ratio: 563.8 / 522.2;
  width: min(580px, 100%, (100svh - var(--head) - 56px) * 1.0797); }
/* The mark's line. It shows only when the scene is slow to come: within a third of a second there is nothing to
   wait for, and a line that flashed before every opening would only be noise. (Its colour is the stroke: the
   mark's own shape is filled with the colour of the text, which here is none.) */
.ld-figure-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: transparent;
  stroke: var(--mark, var(--bone)); stroke-width: 1.9; stroke-linejoin: round; opacity: 0.42; }
.sc-js .ld-figure-line { animation: ld-line-waits 0.7s ease 0.35s both; }
@keyframes ld-line-waits { from { opacity: 0; } }
html.has-scene .ld-figure-line { animation: none; opacity: 0; transition: opacity 0.35s ease; }
/* where the scene cannot start at all (a browser without WebGL, or its script never came) the line is the figure */
html.no-scene .ld-figure-line { animation: none; opacity: 0.94; stroke-width: 2.3;
  color: color-mix(in srgb, var(--mark, var(--bone)) 7%, transparent); transition: opacity 0.6s ease; }
/* the canvas: over the line, in the same box and a margin round it (js/scene.js sets that margin: room for the
   figure's sway and for the points the pointer moves); the figure lights up point by point, so the canvas itself
   need not fade in slowly */
.is-landing .sc-stage { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; transition-duration: 0.3s; }
/* As the first screen is scrolled away the figure dims with it, tied to the scroll itself (browsers that can do
   that; the others simply let it leave), and stilled for a visitor who asked for less motion. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .is-landing .sc-stage.is-on { animation: ld-scene-leaves linear both; animation-timeline: scroll(root block); animation-range: 0 85vh; }
  }
}
@keyframes ld-scene-leaves { from { opacity: 1; } to { opacity: 0.18; } }
/* the first screen fades into the page's own colour, so the next section starts on plain ground */
.is-landing .sc-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--ink)); pointer-events: none; }
@media (max-width: 860px) {
  /* a narrow screen: the figure above the words, where the eye meets it first; the words under it, in the middle */
  .is-landing .sc-hero { align-items: start; }
  /* (the air over the figure grows with the screen's height: a tall phone has it to give, and on a short one the
     main button must still stand in the first screen) */
  .is-landing .sc-hero .wrap, .sc-js:not(.no-scene) .is-landing .sc-hero .wrap { grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(14px, 2.6svh, 26px); padding-block: clamp(20px, 10.8svh - 43px, 56px) 40px; }
  .ld-figure-room { grid-column: 1; grid-row: 1; margin-inline-end: 0; }
  .is-landing .sc-hero .sc-copy { grid-row: 2; text-align: center; }
  .ld-figure { width: min(330px, 78vw, 36svh * 1.0797); }
  .ld-figure-line { stroke-width: 2.6; }
  /* under the figure the words are a size quieter: it is the figure the eye should meet first */
  .is-landing .sc-strong { font-size: clamp(1.75rem, 1.1rem + 3.4vw, 2.6rem); line-height: 1.45; }
  .is-landing .sc-light { font-size: clamp(1.375rem, 0.9rem + 2.6vw, 2.05rem); line-height: 1.5; }
  .is-landing .sc-lead { margin-top: 16px; margin-inline: auto; font-size: 1rem; }
  .is-landing .sc-ctas { justify-content: center; margin-top: 24px; }
  .is-landing .sc-rules { text-align: center; margin-top: 28px; }
}

/* ------------------------------------------------------------------ a section's head: the title on one line, and
   under it, smaller, what the section is about; where to read more stands at the end of that second line. (The
   firm's review of 26 Nov: a title broken over two lines beside its small text read badly; «تیتر تو یه خط، توضیحش
   کوچیک‌تر زیرش».) On a narrow screen the head stands in the middle. */
.ld-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px clamp(24px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(30px, 4vw, 52px); }
.ld-head h2 { grid-column: 1 / -1; font-size: var(--ld-h2); text-wrap: balance; }
.ld-head-side { display: contents; }
.ld-head-side p { color: var(--bone-2); font-size: 1.0625rem; max-width: 46em; }
.ld-head-side .link-arrow { justify-self: end; white-space: nowrap; padding-bottom: 0.1em; }
@media (max-width: 860px) {
  .ld-head { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; text-align: center; }
  .ld-head-side p { font-size: 1rem; }
  .ld-head-side .link-arrow { justify-self: center; margin-top: 4px; white-space: normal; }    /* a long one may take two lines */
}

/* ------------------------------------------------------------------ the way, in four steps
   Four panels standing side by side, each turned a little toward the middle of the row (a curved wall, seen from
   its centre). Until the page is scrolled to them they lie back, out of sight; js/landing.js stands them up one
   after another, and they stay up. The last is the payout: the one green panel. */
.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; perspective: 1500px; perspective-origin: 50% 40%; }
.ld-step { min-width: 0; --turn: 0deg; }
.ld-step:nth-child(1) { --turn: 13deg; }
.ld-step:nth-child(2) { --turn: 4.5deg; }
.ld-step:nth-child(3) { --turn: -4.5deg; }
.ld-step:nth-child(4) { --turn: -13deg; }
[dir="rtl"] .ld-step:nth-child(1) { --turn: -13deg; }
[dir="rtl"] .ld-step:nth-child(2) { --turn: -4.5deg; }
[dir="rtl"] .ld-step:nth-child(3) { --turn: 4.5deg; }
[dir="rtl"] .ld-step:nth-child(4) { --turn: 13deg; }
.ld-step-card { position: relative; height: 100%; display: grid; grid-template-rows: auto auto auto 1fr; align-content: start;
  padding: 22px 22px 26px; border: 1px solid var(--line-2); border-radius: var(--ld-r);
  background: var(--panel); box-shadow: var(--edge), 0 44px 60px -46px var(--shadow);
  transform: rotateY(var(--turn)); transform-origin: 50% 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.5s ease, border-color 0.3s ease; }
.ld-step:hover .ld-step-card { transform: rotateY(0deg) translateY(-6px); border-color: var(--bone-2); }
.ld-step.is-goal .ld-step-card { border-color: color-mix(in srgb, var(--sage) 46%, var(--ink));
  background: linear-gradient(168deg, color-mix(in srgb, var(--sage) 22%, var(--ink-2)) 0%, color-mix(in srgb, var(--sage) 6%, var(--ink-2)) 62%); }
/* the step's number: an outline while the panel waits, filled once it stands */
.ld-step-no { font: 800 clamp(2.6rem, 1.9rem + 2vw, 3.6rem)/1 var(--font-display); color: var(--bone); }
.ld-step.is-goal .ld-step-no { color: var(--sage); }
.ld-step-art { margin: 16px 0 14px; }
.ld-art { display: block; width: 100%; height: auto; }
.ld-steps h3 { font-size: var(--step-1); }
.ld-step-more p { margin: 8px 0 0; color: var(--bone-2); font-size: 0.9688rem; }
/* waiting to be opened (only once the script is there to open them) */
.ld-steps.is-armed .ld-step:not(.is-open) .ld-step-card { opacity: 0; transform: rotateY(var(--turn)) rotateX(-62deg) translateY(26px);
  transition-duration: 0s; }
.ld-steps.is-armed .ld-step.is-open .ld-step-card { transition-delay: var(--wait, 0s); }

/* the drawings on the steps */
.ld-art .a-card { fill: color-mix(in srgb, var(--bone) 4%, transparent); stroke: var(--line-2); stroke-width: 1.2; }
.ld-art .a-card.is-on { fill: color-mix(in srgb, var(--bone) 10%, var(--ink-2)); stroke: var(--bone); stroke-width: 1.5; }
.ld-art .a-line { fill: none; stroke: color-mix(in srgb, var(--bone) 28%, transparent); stroke-width: 3.2; stroke-linecap: round; }
.ld-art .a-line.is-on { stroke: color-mix(in srgb, var(--bone) 82%, transparent); }
.ld-art .a-dot { fill: var(--bone); }
.ld-art .a-tick { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ld-art .a-target { fill: none; stroke: var(--sage); stroke-width: 1.7; stroke-dasharray: 7 6; }
.ld-art .a-limit { fill: none; stroke: color-mix(in srgb, var(--bone) 34%, transparent); stroke-width: 1.7; }
.ld-art .a-area { fill: color-mix(in srgb, var(--bone) 6%, transparent); }
.ld-art .a-equity { fill: none; stroke: var(--bone); stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
.ld-art .a-head { fill: var(--sage); stroke: var(--ink-2); stroke-width: 3; }
.ld-art .a-ring { fill: none; stroke: color-mix(in srgb, var(--bone) 16%, transparent); stroke-width: 11; }
.ld-art .a-share { fill: none; stroke: var(--bone); stroke-width: 11; }
.ld-art .a-bars { fill: none; stroke: var(--bone-2); stroke-width: 6.5; stroke-linecap: round; }
.ld-art .a-amount { fill: none; stroke: var(--sage); stroke-width: 8; stroke-linecap: round; }
.ld-art .a-seal { fill: var(--sage); }
.ld-art .a-tick.is-seal { stroke: var(--sage-ink); stroke-width: 3.2; }
.ld-step.is-goal .a-card.is-on { fill: color-mix(in srgb, var(--sage) 9%, var(--ink-2)); stroke: color-mix(in srgb, var(--sage) 70%, var(--bone)); }

@media (max-width: 980px) {
  /* a tablet: two by two, standing straight */
  .ld-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); perspective: none; }
  .ld-step { --turn: 0deg !important; }
}
@media (max-width: 620px) {
  /* a phone: one under the other, on a line down the side that joins their numbers */
  .ld-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-inline-start: 22px; position: relative; }
  .ld-steps::before { content: ""; position: absolute; inset-block: 22px; inset-inline-start: 4px; width: 1px; background: var(--line-2); }
  .ld-step { position: relative; }
  .ld-step::before { content: ""; position: absolute; top: 34px; inset-inline-start: -22px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--ink); border: 1.5px solid var(--bone-2); transition: background-color 0.3s ease 0.2s, border-color 0.3s ease 0.2s; }
  .ld-step.is-open::before, .ld-steps:not(.is-armed) .ld-step::before { background: var(--bone); border-color: var(--bone); }
  .ld-step.is-goal.is-open::before, .ld-steps:not(.is-armed) .ld-step.is-goal::before { background: var(--sage); border-color: var(--sage); }
  /* the number and the title on one line, the words under them, and the drawing small at the card's far side */
  .ld-step-card { grid-template-columns: auto minmax(0, 1fr) 104px; grid-template-rows: auto auto; column-gap: 12px; row-gap: 6px;
    padding: 16px 16px 18px; }
  .ld-step-no { grid-row: 1; grid-column: 1; font-size: 2rem; align-self: center; }
  .ld-steps h3 { grid-row: 1; grid-column: 2; align-self: center; }
  .ld-step-art { grid-row: 1 / span 2; grid-column: 3; align-self: center; margin: 0; }
  .ld-art { max-height: 84px; }
  .ld-step-more { grid-row: 2; grid-column: 1 / span 2; }
  .ld-steps.is-armed .ld-step:not(.is-open) .ld-step-card { transform: translateY(22px); }
  .ld-step:hover .ld-step-card { transform: none; }
}

/* ------------------------------------------------------------------ the chooser: 1 the plan, 2 the account size,
   3 the rules of that choice; its price stays beside them */
.ld-chooser { display: grid; gap: clamp(22px, 2.6vw, 32px); }
.ld-pick-label { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 1rem/1.4 var(--font-text); color: var(--bone-2); }
.ld-pick-label span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--bone); font: 800 0.9375rem/1 var(--font-display); }
.ld-plans { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.ld-plan-card { display: grid; grid-template-rows: auto auto auto 1fr; gap: 2px; padding: 18px 20px 18px; border: 1px solid var(--line-2);
  border-radius: 18px; background: var(--ink-2); color: var(--bone-2); text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease; }
.ld-plan-card:hover { border-color: var(--bone-2); }
.ld-plan-card.is-on { border-color: var(--bone); background: var(--panel); box-shadow: inset 0 0 0 1px var(--bone); }
.ld-plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--bone);
  font: 800 1.25rem/1.6 var(--font-display); }
.ld-plan-flag { padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--bone-2);
  font: 600 0.75rem/1.9 var(--font-text); white-space: nowrap; }
.ld-plan-card.is-on .ld-plan-flag { border-color: var(--bone-2); color: var(--bone); }
.ld-plan-steps { color: var(--muted); font-size: 0.875rem; }
.ld-plan-tag { margin-top: 8px; font-size: 0.9375rem; line-height: 1.75; }
.ld-plan-from { align-self: end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.ld-plan-from b { color: var(--bone); font: 800 1.125rem/1.4 var(--font-display); }

.ld-plan { grid-template-columns: minmax(0, 1fr) minmax(290px, 350px); gap: clamp(20px, 2.8vw, 36px); align-items: start; }
.ld-plan-suits { margin: 0; padding: 12px 16px; border-inline-start: 2px solid var(--bone-2); border-radius: 0 12px 12px 0;
  background: var(--ink-2); color: var(--bone-2); font-size: 0.9688rem; }
[dir="rtl"] .ld-plan-suits { border-radius: 12px 0 0 12px; }
.ld-plan-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 2.6vw, 32px); min-width: 0; }
.ld-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.ld-size { display: grid; gap: 1px; padding: 11px 14px 12px; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--ink-2); text-decoration: none; transition: border-color 0.15s ease; }
.ld-size:hover { border-color: var(--bone-2); }
.ld-size b { color: var(--bone); font: 800 1.0625rem/1.55 var(--font-display); white-space: nowrap; }
.ld-size span { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.ld-size.is-on { background: var(--bone); border-color: var(--bone); }
.ld-size.is-on b { color: var(--ink); }
.ld-size.is-on span { color: color-mix(in srgb, var(--ink) 72%, var(--bone)); }
.ld-size.is-off { opacity: 0.5; }
.ld-size.is-off b { text-decoration: line-through; text-decoration-thickness: 1px; }

/* the rules of the chosen challenge: a column for each phase, the funded account last */
.ld-rules { border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); overflow-x: auto; }
.ld-rules table { width: 100%; border-collapse: collapse; font-size: 0.9688rem; }
.ld-rules th, .ld-rules td { padding: 13px 18px; text-align: start; vertical-align: middle; border-top: 1px solid var(--line); }
.ld-rules thead th { border-top: 0; color: var(--bone-2); font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.ld-rules tbody th { color: var(--bone-2); font-weight: 500; }
.ld-rules tbody th small { display: block; max-width: 30em; margin-top: 2px; color: var(--muted); font-size: 0.8125rem; font-weight: 400;
  line-height: 1.7; }
.ld-rules td b { display: block; font: 800 1.125rem/1.45 var(--font-display); white-space: nowrap; }
.ld-rules td b.is-target { color: var(--sage); }
.ld-rules td small { display: block; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.ld-rules .is-none { color: var(--muted); }
.ld-rules .is-funded { background: color-mix(in srgb, var(--bone) 4%, transparent); }
.ld-rules thead th.is-funded { color: var(--bone); }
.ld-terms { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ld-terms li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 10px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; }
.ld-terms .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--bone-2); }
.ld-terms span { color: var(--muted); font-size: 0.8125rem; }
.ld-terms b { font-weight: 700; }

/* the price: it follows the page while the choices are being made */
.ld-ticket { position: sticky; top: 96px; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px;
  border-color: var(--line-2); border-radius: var(--ld-r); background: var(--panel);
  box-shadow: var(--edge), 0 44px 70px -50px var(--shadow); }
.ld-ticket-plan { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 800 1.125rem/1.5 var(--font-display); }
.ld-ticket-plan span { color: var(--muted); font: 400 0.875rem/1.5 var(--font-text); }
.ld-ticket .price b { display: inline-block; font-size: clamp(2.3rem, 1.8rem + 1.6vw, 3rem); }
.ld-ticket-notes { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 10px; }
.ld-ticket-notes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--bone-2); font-size: 0.875rem; line-height: 1.8; }
.ld-ticket-notes .icon { width: 20px; height: 20px; margin-top: 0.2em; color: var(--muted); }
@media (max-width: 900px) {
  .ld-plan { grid-template-columns: minmax(0, 1fr); }
  .ld-ticket { position: static; }
}
@media (max-width: 620px) {
  /* Three plans across a phone: the name, how many phases and where the price starts (in one line: «از ۵۹ دلار»);
     its one line of text moves under. The firm's review of 26 Nov asked for this part closer and from its middle,
     without making its numbers any smaller: so it is the air that goes, not the size of the type. */
  .ld-chooser { gap: 20px; }
  .ld-plan-main { gap: 20px; }
  .ld-pick-label { margin-bottom: 10px; }
  .ld-plans { gap: 8px; }
  /* (the last row is the price's: where one plan's name takes two lines, the three prices still stand on one line) */
  .ld-plan-card { grid-template-rows: auto auto 1fr; padding: 10px 8px 10px; border-radius: 14px; text-align: center; justify-items: center; }
  .ld-plan-name { justify-content: center; flex-wrap: wrap; gap: 2px 6px; font-size: 1rem; line-height: 1.5; }
  .ld-plan-flag { display: none; }
  .ld-plan-tag { display: none; }
  .ld-plan-steps { font-size: 0.8125rem; }
  .ld-plan-from { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 5px; width: 100%;
    margin-top: 6px; padding-top: 6px; font-size: 0.8125rem; }
  .ld-plan-from b { font-size: 0.9375rem; }
  /* the sizes three across; the one or two that are left over stand in the middle of their row */
  .ld-sizes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .ld-size { grid-column: span 2; padding: 8px 6px 9px; text-align: center; }
  .ld-size:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2; }
  .ld-size:nth-child(3n + 1):last-child { grid-column: 3 / span 2; }
  .ld-size b { font-size: 0.9375rem; }
  .ld-size span { font-size: 0.8125rem; }
  /* every phase fits the screen: even columns, the numbers in the middle of each, the small print smaller */
  .ld-rules { overflow-x: visible; }
  .ld-rules table { table-layout: fixed; }
  .ld-rules th, .ld-rules td { padding: 9px 4px; text-align: center; }
  .ld-rules thead th:first-child, .ld-rules tbody th { width: 27%; padding-inline: 12px 4px; text-align: start; }
  .ld-rules thead th { font-size: 0.75rem; white-space: normal; line-height: 1.5; }
  .ld-rules tbody th { font-size: 0.8125rem; line-height: 1.65; }
  .ld-rules tbody th small { display: none; }
  .ld-rules td b { font-size: 1rem; line-height: 1.4; white-space: normal; }
  .ld-rules td b.is-words { font-size: 0.8125rem; font-weight: 700; line-height: 1.6; }    /* «حداکثر ۳۰ روز»: words, not a number */
  .ld-rules td small { font-size: 0.6875rem; }
  .ld-rules .is-none { font-size: 0.8125rem; }
  /* the three terms as lines of one box: what, and its number at the far side */
  .ld-terms { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 16px; }
  .ld-terms li { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 0 10px; padding: 12px 14px; border: 0; border-radius: 0; }
  .ld-terms li + li { border-top: 1px solid var(--line); }
  .ld-terms .icon { grid-row: auto; width: 20px; height: 20px; }
  .ld-terms span { font-size: 0.875rem; }
  /* the price and its button stay in sight while the plan is being read */
  .ld-ticket { position: sticky; bottom: 0; top: auto; z-index: 4; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: 6px 14px; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0; border-inline: 0; border-bottom: 0; background: var(--ink-2);
    box-shadow: 0 -18px 30px -18px var(--shadow); }
  body:has(.preview-bar:not(.is-plain)) .ld-ticket { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .ld-ticket-plan, .ld-ticket-notes, .ld-ticket .price p { display: none; }
  .ld-ticket .price b { font-size: 1.6rem; }
  .ld-ticket .btn-wide { width: auto; min-height: 46px; padding-inline: 1.2em; }
}

/* ------------------------------------------------------------------ what the page promises, in one line: a plain
   statement with a short stroke of the firm's colour before it. (It was set as a highlighter's stroke, the words
   on the colour of the words; in the firm's review that read as text someone had selected by accident.) */
.ld-claim { padding-block: 0 var(--section); }
/* it and the row of numbers are bands between sections, not sections: the one after them must not add its own
   space on top of theirs (a section gives its top up only after another section) */
.ld-claim + .section, .ld-figures + .section { padding-top: 0; }
.ld-claim-box { display: grid; gap: 10px; padding-inline-start: clamp(18px, 2.4vw, 30px); border-inline-start: 3px solid var(--brand); }
.ld-claim-line { margin: 0; max-width: 38em; font: 800 clamp(1.3rem, 1rem + 1.25vw, 1.95rem)/1.7 var(--font-display); text-wrap: balance; }
:lang(en) .ld-claim-line { line-height: 1.4; }
.ld-claim-note { margin: 0; max-width: 46em; color: var(--bone-2); }
@media (max-width: 860px) {
  /* a narrow screen: in the middle, the stroke above it */
  .ld-claim-box { justify-items: center; padding-inline-start: 0; border-inline-start: 0; text-align: center; }
  .ld-claim-box::before { content: ""; width: 44px; height: 3px; border-radius: 2px; background: var(--brand); margin-bottom: 6px; }
}

/* ------------------------------------------------------------------ the dashboard: what it shows, and an example
   of it that draws itself */
.ld-dash-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ld-dash-grid.is-alone { grid-template-columns: minmax(0, 1fr); }
.ld-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* each point a row of the page's glass: beside the example they hold the column, where bare lines looked lost */
.ld-points li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); font-size: 1.0313rem; font-weight: 500;
  text-wrap: balance; }                                         /* a point of two lines never ends on one stray word */
.ld-point-ico { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--panel); box-shadow: var(--edge); color: var(--bone); }
.ld-point-ico .icon { width: 22px; height: 22px; }
.ld-dash-shot { margin: 0; }
.ld-dash-shot img { width: 100%; border: 1px solid var(--line-2); border-radius: var(--ld-r); }
.ld-mock { margin: 0; border: 1px solid var(--line-2); border-radius: var(--ld-r); background: var(--panel); overflow: hidden;
  box-shadow: var(--edge), 0 60px 90px -60px var(--shadow); }
.ld-mock-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  color: var(--bone-2); font-size: 0.875rem; }
.ld-mock-bar b { font-weight: 600; min-width: 0; }
.ld-mock-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.ld-mock-tag { flex: none; margin-inline-start: auto; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.75rem; line-height: 1.9; }
.ld-mock-top { display: flex; flex-wrap: wrap; gap: 6px 36px; padding: 18px 20px 4px; }
.ld-mock-top p { margin: 0; display: grid; gap: 0; }
.ld-mock-top span { color: var(--muted); font-size: 0.8125rem; }
.ld-mock-top b { font: 800 clamp(1.4rem, 1.1rem + 1vw, 1.8rem)/1.5 var(--font-display); font-variant-numeric: tabular-nums; }
html[lang="fa"] .ld-mock-top b { font-variant-numeric: normal; }
[dir="rtl"] .ld-mock-top b[dir="ltr"] { text-align: right; }
.ld-mock-top .is-gain { color: var(--sage); }
.ld-mock-chart { position: relative; margin: 8px 20px 0; aspect-ratio: 400 / 180; }
.ld-mock-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ld-mock-chart .m-target { fill: none; stroke: var(--sage); stroke-width: 1.3; stroke-dasharray: 6 6; }
.ld-mock-chart .m-floor { fill: none; stroke: color-mix(in srgb, var(--bone) 34%, transparent); stroke-width: 1.3; }
.ld-mock-chart .m-zero { fill: none; stroke: color-mix(in srgb, var(--bone) 20%, transparent); stroke-width: 1; stroke-dasharray: 2 6; }
.ld-mock-chart .m-area { fill: color-mix(in srgb, var(--bone) 6%, transparent); }
.ld-mock-chart .m-line { fill: none; stroke: var(--bone); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; }
.ld-mock-chart .m-head { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--sage) 22%, transparent); }
.ld-mock-chart .m-tag { position: absolute; right: 0; padding: 0 8px; border-radius: 6px; background: var(--ink-2);
  font-size: 0.75rem; line-height: 1.8; white-space: nowrap; translate: 0 -50%; direction: rtl; }
:lang(en) .ld-mock-chart .m-tag { direction: ltr; }
.ld-mock-chart .m-tag.is-target { top: 8.89%; color: var(--sage); }
.ld-mock-chart .m-tag.is-floor { top: 91.11%; color: var(--bone-2); }
.ld-mock-gauges { list-style: none; margin: 0; padding: 16px 20px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.ld-mock-gauges li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; color: var(--bone-2); font-size: 0.8125rem; }
.ld-mock-gauges b { color: var(--bone); font-weight: 700; font-size: 0.9375rem; white-space: nowrap; }
.ld-mock-gauges i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--bone) 13%, transparent); overflow: hidden; }
.ld-mock-gauges u { display: block; width: var(--w); height: 100%; border-radius: 2px; background: var(--bone-2);
  transform-origin: 0 50%; text-decoration: none; }
[dir="rtl"] .ld-mock-gauges u { transform-origin: 100% 50%; }
.ld-mock-gauges .is-target u { background: var(--sage); }
.ld-mock-gauges .is-daily u { background: var(--sand); }
.ld-mock-gauges .is-days u { background: var(--bone); }
/* before it is in view (js/landing.js arms it): nothing drawn yet */
.ld-mock.is-armed .m-line { stroke-dashoffset: 1; }
.ld-mock.is-armed .m-area, .ld-mock.is-armed .m-head { opacity: 0; }
.ld-mock.is-armed .ld-mock-gauges u { transform: scaleX(0); }
.ld-mock.is-armed.is-live .m-line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0.5, 0.2, 1) 0.2s; }
.ld-mock.is-armed.is-live .m-area { opacity: 1; transition: opacity 0.9s ease 1.9s; }
.ld-mock.is-armed.is-live .m-head { opacity: 1; transition: opacity 0.3s ease 2.3s; }
.ld-mock.is-armed.is-live .ld-mock-gauges u { transform: none; transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s; }
.ld-mock.is-live .ld-mock-live, .ld-mock:not(.is-armed) .ld-mock-live { animation: ld-pulse 2.4s ease-out infinite; }
@keyframes ld-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--sage) 0%, transparent); } }
@media (max-width: 860px) {
  /* a narrow screen: the list above the example, each row with room round it (bare lines with their signs hard
     against the screen's edge were what the firm's review pointed at) */
  .ld-dash-grid { grid-template-columns: minmax(0, 1fr); }
  .ld-points { gap: 10px; }
  .ld-points li { padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .ld-mock-gauges { grid-template-columns: minmax(0, 1fr); }
  .ld-mock-bar, .ld-mock-top { padding-inline: 16px; }
  .ld-mock-chart { margin-inline: 16px; }
  .ld-mock-gauges { padding-inline: 16px; }
}

/* ------------------------------------------------------------------ payouts: each one its certificate. With the
   certificate's own picture, the picture; without, a certificate drawn from the same facts */
.ld-certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ld-cert { display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2);
  overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease; }
.ld-cert:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ld-cert-pic { display: block; aspect-ratio: 96 / 49; background: var(--ink-3); border-bottom: 1px solid var(--line); }
.ld-cert-pic img { width: 100%; height: 100%; object-fit: contain; }      /* the whole certificate, whatever its shape */
.ld-cert-paper { position: relative; display: grid; align-content: space-between; justify-items: start; aspect-ratio: 96 / 49; padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 150% at 100% 0%, color-mix(in srgb, var(--sage) 13%, transparent), transparent 62%),
    repeating-linear-gradient(118deg, color-mix(in srgb, var(--bone) 5%, transparent) 0 1px, transparent 1px 9px), var(--ink-3); }
[dir="rtl"] .ld-cert-paper { background: radial-gradient(120% 150% at 0% 0%, color-mix(in srgb, var(--sage) 13%, transparent), transparent 62%),
    repeating-linear-gradient(62deg, color-mix(in srgb, var(--bone) 5%, transparent) 0 1px, transparent 1px 9px), var(--ink-3); }
.ld-cert-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--bone-2); font: 700 0.8125rem/1.4 var(--font-display); }
.ld-cert-brand .mark { width: 26px; height: 24px; color: var(--bone); }
.ld-cert-kind { position: absolute; top: 19px; inset-inline-end: 18px; color: var(--muted); font-size: 0.75rem; }
.ld-cert-sum { color: var(--sage); font: 800 clamp(1.5rem, 1.2rem + 1vw, 2.05rem)/1.3 var(--font-display); }
.ld-cert-seal { position: absolute; bottom: 16px; inset-inline-end: 18px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1.5px solid var(--sage); border-radius: 50%; color: var(--sage); }
.ld-cert-seal .icon { width: 20px; height: 20px; }
.ld-cert-body { display: grid; gap: 4px; align-content: start; padding: 16px 18px 18px; }
.ld-cert-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ld-cert-name { font: 700 1.0625rem/1.6 var(--font-display); }
.ld-cert-amount { color: var(--sage); font: 800 1.0625rem/1.6 var(--font-display); white-space: nowrap; }
.ld-cert:not(.has-pic) .ld-cert-amount { display: none; }          /* the drawn certificate already says it, large */
.ld-cert-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; color: var(--bone-2); font-size: 0.875rem; }
.ld-cert-date { color: var(--muted); white-space: nowrap; }
.ld-cert-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 12px;
  border-top: 1px dashed var(--line-2); font-size: 0.875rem; min-height: 46px; }
.ld-cert-code { color: var(--muted); }
.ld-cert-code code { color: var(--bone); font: 600 0.875rem/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.ld-cert-code.is-none { color: var(--bone-2); }
.ld-cert-check { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2);
  border-radius: 999px; color: var(--bone); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ld-cert-check:hover { border-color: var(--bone-2); }
.ld-cert-check .icon { width: 16px; height: 16px; color: var(--sage); }
.ld-payouts .section-foot .btn .icon, .ld-check .btn .icon { width: 18px; height: 18px; }
@media (max-width: 980px) { .ld-certs.is-all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  /* on the home page: a strip to swipe through, one certificate and the edge of the next */
  .ld-certs:not(.is-all) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); overflow-x: auto;
    scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .ld-certs:not(.is-all)::-webkit-scrollbar { display: none; }
  .ld-certs:not(.is-all) .ld-cert { scroll-snap-align: start; }
  .ld-cert:hover { transform: none; }
}
@media (max-width: 620px) { .ld-certs.is-all { grid-template-columns: minmax(0, 1fr); } }
/* the page of all of them: a code typed here opens its certificate */
.ld-check { display: grid; gap: 10px; max-width: 620px; margin-bottom: clamp(28px, 4vw, 44px); padding: 20px 22px; border: 1px solid var(--line-2);
  border-radius: 20px; background: var(--panel); box-shadow: var(--edge); }
.ld-check label { font-weight: 600; }
.ld-check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-check-row input { flex: 1 1 200px; width: auto; min-width: 0; }

/* ------------------------------------------------------------------ markets and platforms. Each market is a small
   object seen from above its near corner (includes/ld_icons.html), in three tones worked out from the palette */
.ld-markets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.ld-market { display: grid; gap: 2px; align-content: end; min-height: 228px; padding: 18px 20px 20px; border: 1px solid var(--line);
  border-radius: 20px; background: radial-gradient(110% 80% at 50% 0%, color-mix(in srgb, var(--bone) 8%, transparent), transparent 72%), var(--ink-2);
  transition: border-color 0.2s ease; }
.ld-market:hover { border-color: var(--line-2); }
.ld-ico { width: 104px; height: 104px; margin-bottom: 14px;
  --t1: color-mix(in srgb, var(--bone) 94%, var(--ink)); --t2: color-mix(in srgb, var(--bone) 56%, var(--ink));
  --t3: color-mix(in srgb, var(--bone) 30%, var(--ink)); --tk: var(--ink);
  filter: drop-shadow(0 16px 12px var(--shadow-soft)); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ld-market:hover .ld-ico { transform: translateY(-7px); }
[id^="m-"] .t1 { fill: var(--t1); }
[id^="m-"] .t2 { fill: var(--t2); }
[id^="m-"] .t3 { fill: var(--t3); }
[id^="m-"] .rim { fill: none; stroke: var(--t3); stroke-width: 1.2; }
[id^="m-"] .ink { fill: var(--tk); font: 800 22px Arial, Helvetica, sans-serif; }
[id^="m-"] .ink-line { fill: none; stroke: var(--tk); stroke-width: 2.6; stroke-linecap: round; }
[id^="m-"] .ink-fill { fill: var(--tk); }
[id^="m-"] .hoop { fill: none; stroke: var(--t1); stroke-width: 2; opacity: 0.55; }
[id^="m-"] .wick { fill: none; stroke: var(--t2); stroke-width: 2; stroke-linecap: round; }
.ld-market b { font: 800 1.1875rem/1.5 var(--font-display); }
.ld-market span { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.02em; }
[dir="rtl"] .ld-market span { text-align: right; }
/* the platforms: one band under the markets */
.ld-platform-band { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 16px; padding: 16px 22px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.ld-platform-band h3 { color: var(--bone-2); font: 600 1rem/1.5 var(--font-text); }
.ld-platform-band .link-arrow { margin-inline-start: auto; }
.ld-platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ld-platforms li { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 16px; }
[dir="rtl"] .ld-platforms li { padding: 8px 8px 8px 16px; }
.ld-platform-logo { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--ink-3); color: var(--bone); overflow: hidden; }
.ld-platform-logo .icon { width: 22px; height: 22px; }
/* a platform's own logo stands on the band's ground itself, without a tile (see .choice-logo in css/site.css) */
.ld-platform-logo.has-logo { background: none; border-color: transparent; overflow: hidden; }
.ld-platform-logo img { width: 100%; height: 100%; object-fit: contain; }
.ld-platforms b { font-weight: 700; }
.ld-platforms li.is-soon { border-style: dashed; }
.ld-platforms li.is-soon b { color: var(--bone-2); }
.ld-soon { padding: 0 10px; border: 1px dashed var(--line-2); border-radius: 999px; color: var(--muted);
  font-size: 0.75rem; line-height: 1.9; white-space: nowrap; }
@media (max-width: 620px) {
  .ld-markets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ld-market { min-height: 0; padding: 14px 14px 16px; border-radius: 16px; }
  /* an odd one at the end takes the whole row, its picture beside its name */
  .ld-market:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .ld-market:last-child:nth-child(odd) .ld-ico { grid-row: span 2; margin-bottom: 0; }
  .ld-market:last-child:nth-child(odd) b { align-self: end; }
  .ld-market:last-child:nth-child(odd) span { align-self: start; }
  .ld-platform-band { padding: 16px; }
  .ld-platform-band .link-arrow { margin-inline-start: 0; }
  .ld-ico { width: 64px; height: 64px; margin-bottom: 8px; }
  .ld-market b { font-size: 1.0625rem; }
  .ld-market span { font-size: 0.75rem; }
}

/* ------------------------------------------------------------------ the firm in numbers: one panel of the page's
   glass, like the calculator above it, with the numbers inside it (asked for in the review of 26 Nov; they stood
   bare between two lines) */
.ld-figures { padding-bottom: var(--section); }
.ld-figs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--ld-r); background: var(--panel); box-shadow: var(--edge); overflow: hidden; }
.ld-figs li { display: grid; gap: 2px; align-content: start; padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2.4vw, 34px);
  border-inline-start: 1px solid var(--line); }
.ld-figs li:first-child { border-inline-start: 0; }
.ld-figs b { font: 800 clamp(1.6rem, 1.1rem + 1.9vw, 2.6rem)/1.35 var(--font-display); white-space: nowrap; }
.ld-figs span { color: var(--bone-2); font-size: 0.9688rem; }
@media (max-width: 760px) {
  .ld-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
  .ld-figs li { padding: 16px 12px; }
  .ld-figs li:nth-child(odd) { border-inline-start: 0; }
  .ld-figs li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ld-figs b { font-size: clamp(1.3rem, 1rem + 1.6vw, 1.7rem); }
  .ld-figs span { font-size: 0.875rem; }
}

/* ------------------------------------------------------------------ what traders wrote: a strip that drifts (a
   strip to swipe, without the script or with less motion) */
.ld-marquee { overflow-x: auto; scrollbar-width: none; }
.ld-marquee::-webkit-scrollbar { display: none; }
.ld-reviews { list-style: none; margin: 0; padding: 2px var(--gutter); display: flex; gap: 16px; width: max-content; }
.ld-review { flex: none; width: min(340px, 80vw); display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 20px 22px 18px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.ld-review-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.ld-review-top .icon { width: 24px; height: 24px; }
.ld-stars { display: inline-flex; gap: 2px; color: var(--sand); }
.ld-stars .icon { width: 14px; height: 14px; }
.ld-review blockquote { margin: 0; font-size: 0.9688rem; line-height: 1.95; }
:lang(en) .ld-review blockquote { line-height: 1.65; }
.ld-review-who { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 0.875rem; }
.ld-review-who b { font-weight: 700; }
.ld-review-who span, .ld-review-who a { color: var(--muted); }
.ld-marquee.is-moving { overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.ld-marquee.is-moving .ld-reviews { padding-inline: 0; animation: ld-drift var(--drift, 70s) linear infinite; }
[dir="rtl"] .ld-marquee.is-moving .ld-reviews { animation-name: ld-drift-rtl; }
.ld-marquee.is-moving:hover .ld-reviews, .ld-marquee.is-moving:focus-within .ld-reviews { animation-play-state: paused; }
@keyframes ld-drift { to { transform: translateX(calc(-50% - 8px)); } }
@keyframes ld-drift-rtl { to { transform: translateX(calc(50% + 8px)); } }

/* ------------------------------------------------------------------ videos: a strip of covers that slides (the
   firm's review of 26 Nov: «حالت اسلایدی»). Three and a little of the fourth are seen at once, so it is plain there
   is more; it is swiped on a phone, scrolled with the keyboard, and with the script two arrows stand over its edges
   while there is more that way (js/landing.js). One the firm uploaded plays in its place; one that lives elsewhere
   opens there. */
.ld-slider { position: relative; container-type: inline-size; --gap: 16px; --per: 3.16; }
.ld-videos { list-style: none; margin: 0; padding: 6px 0 4px; display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; }
.ld-videos::-webkit-scrollbar { display: none; }
.ld-videos:focus-visible { outline: 2px solid var(--sand); outline-offset: 6px; border-radius: 18px; }
.ld-videos li { flex: 0 0 calc((100% - var(--gap) * 3) / var(--per)); min-width: 0; scroll-snap-align: start; }
/* where the strip goes on past its edge, that edge fades */
.ld-slider:not(.at-end) .ld-videos { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); }
[dir="rtl"] .ld-slider:not(.at-end) .ld-videos { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 72px), transparent); }
.ld-slider.at-start.at-end .ld-videos, .ld-slider:not(.is-live) .ld-videos { -webkit-mask-image: none; mask-image: none; }
.ld-video { display: grid; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start;
  text-decoration: none; cursor: pointer; }
div.ld-video { cursor: default; }
.ld-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--line-2); background: var(--ink-3); box-shadow: 0 34px 50px -38px var(--shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.2s ease; }
.ld-cover img { width: 100%; height: 100%; object-fit: cover; }
/* a video without a picture yet: the mark, large and faint, on the palette's own panel colour */
.ld-cover-mark { position: absolute; inset-block: 12%; inset-inline-start: 6%; width: 46%; height: 76%;
  color: color-mix(in srgb, var(--bone) 14%, var(--ink-3)); }
.ld-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bone); box-shadow: 0 10px 30px -10px var(--shadow); transition: transform 0.15s ease; }
.ld-play::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; translate: 2px 0;
  border-block: 9px solid transparent; border-left: 15px solid var(--ink); }
:is(a, button).ld-video:hover .ld-cover { transform: translateY(-4px); border-color: var(--bone-2); }
:is(a, button).ld-video:hover .ld-play { transform: scale(1.08); }
.ld-length { position: absolute; bottom: 8px; right: 8px; padding: 1px 7px; border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--bone); font-size: 0.75rem; font-weight: 600; }
.ld-video-title { font-weight: 700; line-height: 1.7; }
/* the arrows: round, of the page's glass, level with the middle of the covers (the strip's width says how tall a
   cover is: 9/16 of one of its --per shares) */
.ld-slide-btn { position: absolute; z-index: 2; top: calc(6px + (100cqi - var(--gap) * 3) / var(--per) * 9 / 32 - 23px);
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  background: color-mix(in srgb, var(--ink-2) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--bone); cursor: pointer; box-shadow: var(--edge), 0 14px 30px -14px var(--shadow);
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.ld-slide-btn[hidden] { display: none; }
.ld-slide-btn:hover { border-color: var(--bone-2); transform: scale(1.06); }
.ld-slide-btn:disabled { opacity: 0; pointer-events: none; }
.ld-slide-btn .icon { width: 20px; height: 20px; }
.ld-slide-btn.is-prev { inset-inline-start: -14px; }
.ld-slide-btn.is-next { inset-inline-end: -14px; }
/* the chevron points down as drawn: turned to point the way its arrow slides, in either direction of writing */
[dir="rtl"] .ld-slide-btn.is-prev .icon, [dir="ltr"] .ld-slide-btn.is-next .icon { transform: rotate(-90deg); }
[dir="rtl"] .ld-slide-btn.is-next .icon, [dir="ltr"] .ld-slide-btn.is-prev .icon { transform: rotate(90deg); }
/* playing in its place */
.ld-cover video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.ld-video.is-playing { cursor: default; }
.ld-video.is-playing .ld-cover { transform: none; }
.ld-video.is-playing :is(.ld-play, .ld-length, .ld-cover-mark, img) { display: none; }
@media (max-width: 1000px) { .ld-slider { --per: 2.14; } }
@media (max-width: 620px) {
  /* a phone: one cover and the edge of the next, from the screen's own edge; a finger slides it, so no arrows */
  .ld-slider { --per: 1.2; --gap: 12px; margin-inline: calc(var(--gutter) * -1); }
  .ld-videos { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .ld-videos li { flex-basis: calc((100% - var(--gutter) * 2 - var(--gap)) / var(--per)); }
  .ld-slider .ld-videos { -webkit-mask-image: none; mask-image: none; }
  .ld-slide-btn { display: none; }
  .ld-video-title { text-align: center; }
}

/* ------------------------------------------------------------------ a prize draw that is open: one band */
.ld-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 32px;
  padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line-2); border-radius: 26px; background: var(--panel); box-shadow: var(--edge); }
.ld-band > div:not(.ld-band-actions) { flex: 1 1 300px; min-width: 0; }
.ld-band h2 { font-size: var(--step-2); }
.ld-band p { margin: 8px 0 0; color: var(--bone-2); }
.ld-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ld-band-ico { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--sage); color: var(--sage-ink); }
.ld-band-ico .icon { width: 30px; height: 30px; }
.ld-band.is-draw { border-color: color-mix(in srgb, var(--sage) 45%, var(--ink)); }
.ld-band .ld-band-prize { margin-top: 10px; color: var(--bone); font: 800 var(--step-1)/1.6 var(--font-display); }
.ld-band .ld-band-prize + p { margin-top: 2px; }

/* ------------------------------------------------------------------ where the firm is followed */
.ld-socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ld-social { display: grid; gap: 4px; align-content: start; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--ink-2); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
a.ld-social:hover { border-color: var(--bone-2); transform: translateY(-3px); }
/* on a preview, before its link is set: shown, dimmed, going nowhere */
.ld-social.is-unset { border-style: dashed; }
.ld-social.is-unset .ld-social-ico { background: var(--ink-3); color: var(--bone-2); border: 1px solid var(--line-2); }
.ld-social.is-unset .ld-social-go { color: var(--sand); font-weight: 500; font-size: 0.875rem; }
.ld-social-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 16px;
  background: var(--bone); color: var(--ink); }
.ld-social-ico .icon { width: 26px; height: 26px; }
/* a network's own glyph (img/social/, from Simple Icons): its file is the mask, the colour is the tile's own, so it
   is one colour like every other sign on the page and never the network's own colours (the firm asked for both:
   «آیکون خودشون، سیاه‌وسفید») */
.ld-glyph { display: block; width: 26px; height: 26px; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.ld-glyph.is-telegram { -webkit-mask-image: url("../img/social/telegram.d7bb1c357fbf.svg"); mask-image: url("../img/social/telegram.d7bb1c357fbf.svg"); }
.ld-glyph.is-instagram { -webkit-mask-image: url("../img/social/instagram.8e8d554c282b.svg"); mask-image: url("../img/social/instagram.8e8d554c282b.svg"); }
.ld-glyph.is-youtube { -webkit-mask-image: url("../img/social/youtube.fbae9fa0bf72.svg"); mask-image: url("../img/social/youtube.fbae9fa0bf72.svg"); }
.ld-social b { font: 800 1.25rem/1.5 var(--font-display); }
.ld-social-text { color: var(--bone-2); font-size: 0.9375rem; }
.ld-social-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; }
.ld-social-go .icon { transition: transform 0.15s ease; }
.ld-social:hover .ld-social-go .icon { transform: translateX(3px); }
[dir="rtl"] .ld-social:hover .ld-social-go .icon { transform: scaleX(-1) translateX(3px); }
@media (max-width: 620px) {
  .ld-socials { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ld-social { grid-template-columns: 48px minmax(0, 1fr); gap: 0 14px; padding: 16px; align-items: center; }
  .ld-social-ico { grid-row: span 2; width: 48px; height: 48px; margin: 0; border-radius: 14px; }
  .ld-social b { font-size: 1.0625rem; }
  .ld-social-text { grid-column: 2; font-size: 0.875rem; }
  .ld-social-go { grid-column: 2; margin-top: 6px; font-size: 0.875rem; }
  a.ld-social:hover { transform: none; }
}

/* ------------------------------------------------------------------ the questions, under a head like the others */

/* ------------------------------------------------------------------ the last call: one panel, the mark large and
   faint in its corner */
.ld-final-box { position: relative; overflow: hidden; isolation: isolate; padding: clamp(30px, 6vw, 84px); border: 1px solid var(--line-2);
  border-radius: 28px; background: var(--panel); box-shadow: var(--edge); }
.ld-final-mark { position: absolute; z-index: -1; inset-inline-end: -3%; bottom: -16%; width: min(48%, 440px); height: auto;
  aspect-ratio: 563.8 / 522.2; color: color-mix(in srgb, var(--bone) 7%, transparent); pointer-events: none; }
[dir="rtl"] .ld-final-mark { transform: scaleX(-1); }
.ld-final h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.3rem); max-width: 13em; }
.ld-final p { margin: 14px 0 0; max-width: 34em; color: var(--bone-2); }
.ld-final .sc-demo p { margin: 0; }
@media (max-width: 620px) { .ld-final-mark { width: 70%; bottom: -8%; opacity: 0.7; } }

@media (prefers-reduced-motion: reduce) {
  .ld-play, .ld-cover, .ld-ico, .ld-step-card, .ld-cert, .ld-social { transition: none; }
  .ld-mock-live { animation: none !important; }
}

/* ------------------------------------------------------------------ the pip calculator (the landing and its own page)
   One box in two halves: what the visitor writes, and beside it (under it on a phone) the answer, large. */
.pipc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); border: 1px solid var(--line); border-radius: var(--ld-r);
  background: var(--panel); box-shadow: var(--edge); overflow: hidden; }
.pipc-fields { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.85fr); gap: 18px 16px; align-content: start; padding: clamp(20px, 3vw, 34px); }
.pipc-fields > [data-pipc-price], .pipc-go { grid-column: 1 / -1; }
.pipc-fields select, .pipc-fields input { font-weight: 600; letter-spacing: 0.02em; }
.pipc-go { justify-self: start; }
.pipc-quick { display: flex; flex-wrap: wrap; gap: 5px; }
.pipc-quick[hidden] { display: none; }
.pipc-quick button { min-height: 32px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--bone-2);
  font: 600 0.8125rem/1 var(--font-text); cursor: pointer; }
.pipc-quick button:hover { border-color: var(--bone-2); color: var(--bone); }
.pipc-result { display: grid; align-content: center; gap: 6px; padding: clamp(22px, 3vw, 38px); border-inline-start: 1px solid var(--line); background: var(--ink); }
.pipc-label { color: var(--muted); font-size: 0.9375rem; }
.pipc-value { font: 800 clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem)/1.25 var(--font-display); letter-spacing: -0.01em; }
.pipc-note { margin: 0; max-width: 42ch; color: var(--bone-2); font-size: 0.9375rem; }
.pipc-note.is-error { color: var(--sand); }
/* the visitor's own count of pips and what it comes to: one line that stands out from the round ones under it */
.pipc-yours { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 14px 0 0; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); box-shadow: var(--edge); }
.pipc-yours[hidden] { display: none; }
.pipc-yours span { color: var(--bone-2); font-weight: 600; }
.pipc-yours b { font: 800 1.375rem/1.4 var(--font-display); white-space: nowrap; }
.pipc-steps { list-style: none; margin: 16px 0 0; padding: 16px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  border-top: 1px solid var(--line); }
.pipc-steps[hidden] { display: none; }
.pipc-steps li { display: grid; gap: 2px; min-width: 0; }
.pipc-steps span { color: var(--muted); font-size: 0.8125rem; }
.pipc-steps b { font-weight: 700; font-size: 0.9688rem; white-space: nowrap; }
.pipc-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(34px, 5vw, 60px); }
.pipc-about h2 { margin-bottom: 10px; font-size: var(--step-1); }
.pipc-about p { max-width: 62ch; color: var(--bone-2); }
@media (max-width: 820px) {
  .pipc { grid-template-columns: minmax(0, 1fr); }
  .pipc-result { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .pipc-fields { grid-template-columns: minmax(0, 1fr); gap: 16px 12px; padding: 18px 16px 20px; }
  .pipc-result { padding: 20px 16px 22px; }
  .pipc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
}

/* ------------------------------------------------------------------ a narrow screen reads from its middle
   (the firm's review of 26 Nov: «نسخه‌ی موبایل وسط‌چین باشه، خیلی بهتر به چشم میاد»). The first screen, the sections'
   heads, the promise and the numbers say so where they are defined; here is the rest: a label over its choices, the
   markets, the platforms' band, the calculator's answer, the last call, and the small notes under a section. What
   is a list or a form keeps its own alignment: the rows of a table, the questions, the fields. */
@media (max-width: 620px) {
  .ld-pick-label { justify-content: center; }
  .ld-market { justify-items: center; text-align: center; }
  [dir="rtl"] .ld-market span { text-align: center; }
  /* (the odd one that takes a whole row keeps its picture beside its name, the pair in the middle of the row) */
  .ld-market:last-child:nth-child(odd) { grid-template-columns: auto auto; justify-content: center; justify-items: start; text-align: start; }
  [dir="rtl"] .ld-market:last-child:nth-child(odd) span { text-align: right; }
  .ld-platform-band { justify-content: center; text-align: center; }
  .ld-platform-band h3 { flex-basis: 100%; }
  .ld-platforms { justify-content: center; }
  .ld-platform-band .link-arrow { margin-inline: auto; }
  .pipc-result { justify-items: center; text-align: center; }
  .pipc-yours { width: 100%; }
  .pipc-steps { width: 100%; }
  .ld-final-box { text-align: center; }
  .ld-final h2, .ld-final p { margin-inline: auto; }
  .ld-final .sc-ctas { justify-content: center; }
  .ld-final .sc-demo { justify-items: center; }
  .is-landing .section-foot { justify-content: center; text-align: center; }
  /* a note of more than one line: its dot runs in the text, at its first word, instead of standing apart at the edge */
  .is-landing .section-foot .sample-note { display: inline; }
  .is-landing .section-foot .sample-note::before { display: inline-block; margin-inline-end: 8px; vertical-align: 0.12em; }
  .ld-band { justify-content: center; text-align: center; }
  .ld-band-actions { justify-content: center; }
}
