/*
 * QLE Pro public site, v2 (October 2026): full-width bands, the hero driven by QLE Pro's own tabs, an annotated chart.
 * Loaded after style.css on the public pages only (the administration keeps style.css alone).
 * Fonts are served from assets/fonts (SIL Open Font License, licences next to the files): Barlow and Barlow Condensed for
 * Latin text, IBM Plex Sans Arabic for Arabic and Urdu (downloaded only when Arabic letters are on the page).
 *
 * Two surfaces, taken from the product: "term" is the canvas of QLE Pro in MetaTrader 5, "paper" is where things are
 * explained in plain words. The semantic colours are the product's: teal = enter, amber = wait (PAUSE), blue = exit
 * targets, coral = risk.
 */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-arabic-400.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plex-arabic-600.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

body.public {
  --term: #0e141b;         /* the chart canvas of QLE Pro */
  --term-2: #141d27;       /* its panels */
  --term-3: #1b2633;
  --term-line: #243241;
  --snow: #e6ebf1;
  --fog: #98a4b3;
  --paper: #eceff1;
  --paper-2: #e1e6e9;
  --paper-line: #c9d1d7;
  --ink: #0e141b;
  --ink-2: #4b5563;
  --amber: #f5a524;
  --amber-2: #ffb83d;
  --amber-ink: #1a1203;
  --buy: #26c6a2;
  --buy-ink: #0a6f58;
  --exit: #4c8dff;
  --exit-ink: #1f5fd1;
  --risk: #ef5350;
  --risk-ink: #b42a27;
  --wait-ink: #8f5400;
  --gut: clamp(16px, 4.4vw, 76px);
  --max: 1680px;
  --f-text: 'Barlow', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
  --f-head: 'Barlow Condensed', 'IBM Plex Sans Arabic', 'Barlow', 'Arial Narrow', system-ui, sans-serif;
  background: var(--term);
  color: var(--snow);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.55;
}
body.public :is(h1, h2, h3) { font-family: var(--f-head); font-weight: 600; letter-spacing: 0; }
body.public :lang(ar), body.public :lang(ur) { line-height: 1.85; }
body.public :is(h1, h2, h3):lang(ar), body.public :is(h1, h2, h3):lang(ur) { line-height: 1.35; letter-spacing: 0; }
body.public :focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
body.public .wrap { max-width: 1240px; padding-inline: var(--gut); }
body.public .wrap.narrow { max-width: 860px; }
.band { position: relative; padding-block: clamp(56px, 8vw, 128px); }
.band-in { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.term { background: var(--term); color: var(--snow); }
.term-2 { background: var(--term-2); color: var(--snow); }
.paper { background: var(--paper); color: var(--ink); }
.paper a:not(.btn) { color: var(--exit-ink); }
.paper .muted, .paper .sec-lead { color: var(--ink-2); }
.term .sec-lead, .term-2 .sec-lead { color: var(--fog); }
.sec-title { font-size: clamp(2.1rem, 4.4vw, 3.75rem); line-height: 1.02; margin: 0 0 .45em; max-width: 18em; text-wrap: balance; }
.sec-lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; max-width: 38em; margin: 0 0 1.6em; }
.paper .sec-title { color: var(--ink); }

/* ---------- buttons on the public site ---------- */
body.public .btn { border-radius: 4px; font-weight: 600; letter-spacing: .01em; }
body.public .btn-lg { min-height: 52px; padding: 13px 24px; font-size: 1.05rem; }
body.public .btn-primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
body.public .btn-primary:hover { background: var(--amber-2); border-color: var(--amber-2); }
.btn-line { background: transparent; border: 1px solid rgba(230, 235, 241, .45); color: var(--snow); }
.btn-line:hover { border-color: var(--snow); background: rgba(230, 235, 241, .06); }
.paper .btn-line { border-color: rgba(14, 20, 27, .4); color: var(--ink); }
.paper .btn-line:hover { border-color: var(--ink); background: rgba(14, 20, 27, .05); }
.paper .btn-ghost, .paper .btn:not(.btn-primary):not(.btn-line) { background: #fff; border-color: var(--paper-line); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }

/* ---------- header and footer (every public page) ---------- */
body.public .topbar { background: rgba(14, 20, 27, .96); border-bottom: 1px solid var(--term-line); backdrop-filter: none; }
body.public .topbar-in { min-height: 68px; gap: 18px; }
body.public .brand { font-family: var(--f-head); }
body.public .sitenav { gap: 4px; flex-wrap: nowrap; }
body.public .sitenav .nl { color: var(--fog); padding: 8px 12px; font-size: .98rem; font-weight: 600; white-space: nowrap; }
body.public .sitenav .nl:hover { color: var(--snow); }
body.public .sitenav .nl[aria-current="page"] { color: var(--snow); box-shadow: inset 0 -2px 0 var(--amber); }
body.public .langpick > summary { border-radius: 4px; border-color: var(--term-line); }
body.public .langpick ul { background: var(--term-2); border-color: var(--term-line); border-radius: 6px; }
body.public .langpick li a:hover, body.public .langpick li a.on { background: var(--term-3); }
body.public .btn-sm { border-radius: 4px; }
body.public .footer { background: var(--term); border-top: 1px solid var(--term-line); margin-top: 0; padding: 56px 0 40px; }
body.public .footer-in { width: 100%; max-width: var(--max); padding-inline: var(--gut); gap: 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px 48px; align-items: start; }
.foot-grid h2 { font-size: 1.15rem; margin: 0 0 12px; color: var(--snow); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { color: var(--fog); }
.foot-links a:hover { color: var(--snow); }
.foot-note { color: var(--fog); font-size: .93rem; max-width: 34em; }
body.public .disclaimer { color: var(--fog); font-size: .9rem; max-width: 70em; border-top: 1px solid var(--term-line); padding-top: 20px; margin: 0; }
body.public .footer-logo { width: 220px; }
@media (max-width: 1180px) {
  body.public .sitenav .nl-opt { display: none; }
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body.public .sitenav .nl { display: none; }
  body.public .topbar-in { min-height: 60px; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  body.public .nav-act { display: none; }
}

/* ---------- hero: the message stays, QLE Pro's screens change under its own tabs ---------- */
.qhero { position: relative; background: var(--term); min-height: calc(100svh - 68px); display: flex; align-items: stretch; overflow: hidden; border-bottom: 1px solid var(--term-line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 3vw, 56px); width: 100%; max-width: none;
  padding-inline-start: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); padding-block: clamp(32px, 5vh, 72px); align-items: center; }
.hero-copy { max-width: 36rem; position: relative; z-index: 2; }
.hero-copy h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(3rem, 6.2vw, 6.25rem); line-height: .94; margin: 0 0 .32em; color: #fff; text-wrap: balance; }
.hero-copy h1:lang(ar), .hero-copy h1:lang(ur) { font-size: clamp(2.3rem, 4.4vw, 4.2rem); line-height: 1.3; }
.hero-lead { font-size: clamp(1.08rem, 1.35vw, 1.3rem); line-height: 1.55; color: #cdd5df; margin: 0 0 28px; max-width: 32em; }
.hero-facts { color: var(--fog); font-size: .95rem; margin: 6px 0 0; max-width: 34em; }
.hero-stage { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-self: stretch; justify-content: center; }

/* the slide navigation looks like the tab row of QLE Pro's panel */
.qtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0; list-style: none; }
.qtabs::-webkit-scrollbar { display: none; }
.qtab { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 7px 16px; border: 1px solid #263445; border-radius: 4px;
  background: #121a24; color: #b9c4d1; font-family: var(--f-text); font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer; text-decoration: none; overflow: hidden; }
.qtab:hover { color: #fff; border-color: #34465b; text-decoration: none; }
.qtab[aria-selected="true"], .qtab.is-on { background: #1f2a37; color: #fff; border-color: #3a4c62; }
.qtab .qbar { position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 0; background: var(--amber); }
.js .qhero[data-auto="1"]:not(.is-paused) .qtab.is-on .qbar { animation: qbar var(--slide-ms, 7000ms) linear forwards; }
@keyframes qbar { to { width: 100%; } }

.track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
  margin-inline-end: 0; border-start-start-radius: 6px; border-end-start-radius: 6px; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.slide-media { position: relative; background: var(--term); aspect-ratio: 1600 / 830; overflow: hidden; border: 1px solid #1d2835; border-inline-end: 0; border-radius: inherit; }
.slide-media img, .slide-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.slide-media video { object-fit: contain; background: #05080c; }
.slide-panel .slide-media { background: radial-gradient(120% 90% at 30% 20%, #16212d 0%, var(--term) 70%); }
.slide-panel .slide-media img { object-fit: contain; object-position: center; padding: 2.4% 0; }
.slide-vid .g-video { position: absolute; inset: 0; margin: 0; }
.slide-vid .g-video video, .slide-vid .v-facade, .slide-vid .v-missing { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; background: #05080c; }
.slide-vid .g-video figcaption { position: absolute; inset-inline-start: 12px; top: 10px; margin: 0; pointer-events: none; }
.slide-vid .g-video figcaption > :not(.v-lang) { display: none; }
.slide-vid .g-video figcaption { font-size: 0; }
.v-lang { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: rgba(14, 20, 27, .82); color: #dbe3ec; }
.g-video figcaption .v-lang { margin-inline-start: 6px; }
.slide figcaption { color: var(--fog); font-size: .98rem; max-width: 46em; min-height: 3.1em; padding-inline-end: var(--gut); }
.slide figcaption strong { color: #fff; font-weight: 600; }
.track-ctrl { display: none; align-items: center; gap: 8px; }
.js .track-ctrl { display: flex; }
.tc-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 4px; border: 1px solid #263445; background: #121a24; color: #dbe3ec; cursor: pointer; padding: 0; }
.tc-btn:hover { border-color: #3a4c62; color: #fff; }
.tc-btn svg { width: 16px; height: 16px; }
[dir="rtl"] .tc-prev svg, [dir="rtl"] .tc-next svg { transform: scaleX(-1); }
.tc-count { color: var(--fog); font-variant-numeric: tabular-nums; font-size: .92rem; min-width: 4.5em; }
.tc-pause .i-play, .qhero.is-paused .tc-pause .i-pause { display: none; }
.qhero.is-paused .tc-pause .i-play { display: inline; }
@media (max-width: 1023px) {
  .qhero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-inline: 0; padding-block: 28px 32px; gap: 26px; }
  .hero-copy { padding-inline: var(--gut); max-width: 44rem; }
  .hero-stage { padding-inline-start: var(--gut); }
  .slide-media { aspect-ratio: 4 / 3; }
  .slide-graph .slide-media img { object-position: 62% 30%; }
  .slide-analyse .slide-media img, .slide-scanner .slide-media img, .slide-detail .slide-media img { object-position: left top; }
}
@media (max-width: 560px) {
  .hero-copy h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .slide-media { aspect-ratio: 5 / 6; }
  .slide-video .slide-media { aspect-ratio: 16 / 10; }
  .slide-graph .slide-media img { object-position: 70% 22%; }
  .slide-analyse .slide-media img { object-position: 2% 0; }
  .slide-scanner .slide-media img { object-position: 0 0; }
  .slide-detail .slide-media img { object-position: 0 0; }
  .qtab { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
}

/* ---------- reading a chart: the annotated screenshot ---------- */
.anat-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 28px clamp(28px, 4vw, 64px); align-items: start; }
.anat-head { grid-column: 1 / -1; }
.anat-figure { margin: 0; min-width: 0; }
.anat-scroll { overflow-x: auto; border-radius: 6px; scrollbar-width: thin; }
.anat-canvas { position: relative; direction: ltr; min-width: 680px; background: var(--term); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(14, 20, 27, .3); }
.anat-canvas img { display: block; width: 100%; height: auto; }
.anat-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.anat-svg rect { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; rx: 4; transition: stroke-width .15s, fill .15s; }
.anat-svg .m-wait { stroke: var(--amber); }
.anat-svg .m-dir { stroke: #e6ebf1; stroke-dasharray: 6 5; }
.anat-svg .m-enter { stroke: var(--buy); }
.anat-svg .m-exit { stroke: var(--exit); }
.anat-svg .m-risk { stroke: var(--risk); }
.pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center; font: 700 .92rem/1 var(--f-text);
  color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--term); font-variant-numeric: tabular-nums; }
.pin.p-wait { background: var(--amber); }
.pin.p-enter { background: var(--buy); }
.pin.p-exit { background: var(--exit); color: #fff; }
.pin.p-risk { background: var(--risk); color: #fff; }
.pin-1 { left: 20%; top: 11.45%; }
.pin-2 { left: 20%; top: 23.14%; }
.pin-3 { left: 87%; top: 31.91%; }
.pin-4 { left: 74.13%; top: 9.26%; }
.pin-5 { left: 20%; top: 62.36%; }
.anat-hint { display: none; color: var(--ink-2); font-size: .9rem; margin: 8px 0 0; }
.anat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.anat-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; }
.anat-list .num { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--ink); color: #fff;
  font-variant-numeric: tabular-nums; margin-top: 2px; }
.anat-list .k-wait .num { background: var(--amber); color: var(--amber-ink); }
.anat-list .k-enter .num { background: var(--buy-ink); }
.anat-list .k-exit .num { background: var(--exit-ink); }
.anat-list .k-risk .num { background: var(--risk-ink); }
.anat-list h3 { font-size: 1.45rem; line-height: 1.1; margin: 0; }
.anat-list .k-wait h3 { color: var(--wait-ink); }
.anat-list .k-enter h3 { color: var(--buy-ink); }
.anat-list .k-exit h3 { color: var(--exit-ink); }
.anat-list .k-risk h3 { color: var(--risk-ink); }
.anat-list p { margin: 0; color: var(--ink-2); }
.anat-note { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--paper-line); color: var(--ink); font-weight: 600; max-width: 40em; }
.anat-grid:has(.anat-list li[data-n="1"]:hover) .anat-svg .r1,
.anat-grid:has(.anat-list li[data-n="2"]:hover) .anat-svg .r2,
.anat-grid:has(.anat-list li[data-n="3"]:hover) .anat-svg .r3,
.anat-grid:has(.anat-list li[data-n="4"]:hover) .anat-svg .r4,
.anat-grid:has(.anat-list li[data-n="5"]:hover) .anat-svg .r5 { stroke-width: 6; fill: rgba(255, 255, 255, .07); }
@media (max-width: 1023px) {
  .anat-grid { grid-template-columns: minmax(0, 1fr); }
  .anat-hint { display: block; }
}

/* ---------- videos and the three steps ---------- */
.vid-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.vid-main .g-video, .vid-side .g-video { margin: 0; }
.vid-side h3 { font-size: 1.6rem; margin: 0 0 12px; }
body.public .g-video video, body.public .v-facade, body.public .v-missing { border-radius: 6px; border-color: #1d2835; }
body.public .g-video figcaption { color: var(--fog); }
.steps-line { list-style: none; counter-reset: st; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.steps-line li { counter-increment: st; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; padding-top: 14px; border-top: 1px solid var(--term-line); }
.steps-line li::before { content: counter(st); grid-row: span 2; font-family: var(--f-head); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.steps-line h4 { margin: 0; font-size: 1.08rem; color: #fff; text-transform: none; letter-spacing: 0; font-family: var(--f-text); font-weight: 600; }
.steps-line p { margin: 0; color: var(--fog); }
.vid-more { margin: 22px 0 0; }
@media (max-width: 1023px) { .vid-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- layers (features) and the analysis page ---------- */
.layers-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 48px; align-items: end; margin-bottom: 36px; }
.layers-bar { margin: 0; justify-self: end; max-width: 100%; }
.layers-bar img { display: block; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(14, 20, 27, .25); }
.layers-bar figcaption { color: var(--ink-2); font-size: .88rem; margin-top: 6px; }
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin: 0; }
.layers > div { padding: 22px 0 26px; border-top: 2px solid var(--ink); }
.layers dt { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 1.55rem; font-weight: 600; line-height: 1.1; margin-bottom: 10px; }
.layers dt::before { content: ""; width: 14px; height: 14px; border-radius: 3px; flex: none; background: var(--sw, var(--ink)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.layers dd { margin: 0; color: var(--ink-2); }
.layers .l-vp { --sw: #3b7ddd; }
.layers .l-liq { --sw: #e0a325; }
.layers .l-bank { --sw: #4c6fd8; }
.layers .l-vol { --sw: #8b6ad8; }
.layers .l-struct { --sw: #1aa784; }
.layers .l-risk { --sw: #e25450; }
.split2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 88px); }
.split2 figure { margin: 0; margin-inline-start: calc(-1 * var(--gut)); }
.split2 img { display: block; width: 100%; height: auto; border-start-end-radius: 6px; border-end-end-radius: 6px; }
.split2 h3 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.05; margin: 0 0 14px; }
.paper .ticks li { color: var(--ink-2); }
.paper .ticks li::before { border-color: var(--buy-ink); }
@media (max-width: 1023px) {
  .layers-head, .split2 { grid-template-columns: minmax(0, 1fr); }
  .layers-bar { justify-self: start; }
  .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split2 figure { margin-inline: calc(-1 * var(--gut)); }
  .split2 img { border-radius: 0; }
}
@media (max-width: 600px) { .layers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the makers' note ---------- */
.note-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.note-big { font-family: var(--f-head); font-weight: 600; font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.08; color: #fff; margin: 0; text-wrap: balance; }
.note-big:lang(ar), .note-big:lang(ur) { line-height: 1.4; }
.note-body p { color: #cdd5df; margin: 0 0 1em; }
.note-sign { color: var(--fog); font-size: .95rem; margin-top: 22px; }
.nevers { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.nevers li { padding-inline-start: 22px; position: relative; color: #dbe3ec; }
.nevers li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 2px; background: var(--risk); }
@media (max-width: 900px) { .note-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- prices: one list, the shared features said once ---------- */
.price-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px clamp(32px, 4vw, 72px); align-items: start; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.prow { display: grid; grid-template-columns: minmax(8rem, 2.2fr) minmax(0, 3fr) minmax(9rem, 2fr) auto; gap: 8px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--paper-line); }
.prow.featured { background: linear-gradient(90deg, rgba(245, 165, 36, .16), rgba(245, 165, 36, 0) 70%); padding-inline: 14px; margin-inline: -14px; }
[dir="rtl"] .prow.featured { background: linear-gradient(270deg, rgba(245, 165, 36, .16), rgba(245, 165, 36, 0) 70%); }
.prow h3 { font-size: 1.9rem; line-height: 1; margin: 0; }
.p-name { color: var(--ink-2); margin: 4px 0 0; font-size: .95rem; }
.p-badge { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 3px; background: var(--ink); color: #fff; font: 600 .78rem/1.4 var(--f-text); vertical-align: 4px; }
.p-extra { margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.p-price { font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.p-sub { color: var(--ink-2); font-size: .9rem; margin: 4px 0 0; }
.prow .btn { min-width: 11rem; }
.p-incl { background: #fff; border: 1px solid var(--paper-line); border-radius: 6px; padding: 22px 24px; }
.p-incl h3 { font-size: 1.4rem; margin: 0 0 12px; }
.p-incl .ticks { margin: 0; }
.paper .pay-strip li { border-color: var(--paper-line); background: #fff; color: var(--ink); border-radius: 4px; }
@media (max-width: 1100px) {
  .price-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow .p-mid { grid-column: 1 / -1; order: 3; }
  .prow .btn { grid-column: 1 / -1; order: 4; width: 100%; }
}

/* ---------- lead forms (demo on the sales page, brokers on the partners page) ---------- */
.lead-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.lead-copy h2 { margin-bottom: .35em; }
.lead-next { list-style: none; counter-reset: ln; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.lead-next li { counter-increment: ln; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; color: #cdd5df; }
.lead-next li::before { content: counter(ln); font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--amber); }
.paper .lead-next li { color: var(--ink-2); }
.paper .lead-next li::before { color: var(--wait-ink); }
.lead-card { background: var(--term-2); border: 1px solid var(--term-line); border-radius: 6px; padding: clamp(18px, 2.4vw, 32px); }
.paper .lead-card { background: #fff; border-color: var(--paper-line); color: var(--ink); }
body.public .lead-card input, body.public .lead-card select, body.public .lead-card textarea { border-radius: 4px; background: #0f1720; border-color: #2a394a; }
.paper .lead-card input, .paper .lead-card select, .paper .lead-card textarea { background: #fff; color: var(--ink); border-color: #b9c3cb; }
.paper .lead-card input:focus, .paper .lead-card select:focus, .paper .lead-card textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 20, 27, .12); }
.paper .lead-card .field > span { color: var(--ink-2); }
.lead-card .choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.lead-card .choice legend { font-size: .9rem; font-weight: 600; margin-bottom: 8px; padding: 0; color: var(--fog); }
.paper .lead-card .choice legend { color: var(--ink-2); }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #2a394a; border-radius: 4px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--amber); box-shadow: inset 3px 0 0 var(--amber); }
[dir="rtl"] .opt:has(input:checked) { box-shadow: inset -3px 0 0 var(--amber); }
.paper .opt { border-color: #c4ccd3; }
.paper .opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
[dir="rtl"] .paper .opt:has(input:checked) { box-shadow: inset -3px 0 0 var(--ink); }
.opt input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; flex: none; accent-color: var(--amber); }
.opt span { display: grid; gap: 2px; }
.opt strong { font-weight: 600; }
.opt small { color: var(--fog); font-size: .9rem; }
.paper .opt small { color: var(--ink-2); }
.opt-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: #cdd5df; cursor: pointer; }
.paper .consent { color: var(--ink-2); }
.consent input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; flex: none; accent-color: var(--amber); }
.lead-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.lead-send .small { margin: 0; flex: 1 1 220px; color: var(--fog); }
.paper .lead-send .small { color: var(--ink-2); }
.lead-done { border-inline-start: 4px solid var(--buy); padding-block: 6px; padding-inline: 18px 0; }
.lead-done h3 { font-size: 1.6rem; margin: 0 0 6px; }
@media (max-width: 960px) { .lead-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .opt-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- brokers teaser on the sales page ---------- */
.brk { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 5vw, 96px); align-items: end; }
.brk-facts { margin: 0; display: grid; gap: 0; }
.brk-facts > div { display: grid; grid-template-columns: minmax(9rem, 2fr) minmax(0, 5fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--paper-line); }
.brk-facts > div:first-child { border-top: 2px solid var(--ink); }
.brk-facts dt { font-weight: 600; color: var(--ink); }
.brk-facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .brk { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .brk-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- questions and contact ---------- */
.qa-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 96px); align-items: start; }
body.public .faq { border-color: var(--term-line); }
body.public .faq > summary { padding: 18px 0; font-size: 1.05rem; }
body.public .faq > summary::after { color: var(--amber); }
body.public .faq p, body.public .faq .terms { color: #cdd5df; }
.paper .faq { border-color: var(--paper-line); }
.paper .faq p { color: var(--ink-2); }
.paper .faq > summary::after { color: var(--ink); }
.qa-contact .card { background: var(--term-2); border-color: var(--term-line); box-shadow: none; border-radius: 6px; }
.qa-contact h3 { font-size: 1.7rem; margin: 0 0 8px; }
.qa-contact .sec-lead { font-size: 1rem; margin-bottom: 18px; }
@media (max-width: 1023px) { .qa-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- partners page ---------- */
.p-hero { padding-block: clamp(56px, 9vw, 140px) clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--term-line); }
.p-hero h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .96; margin: 0 0 .35em; max-width: 13em; color: #fff; text-wrap: balance; }
.p-hero h1:lang(ar), .p-hero h1:lang(ur) { line-height: 1.3; font-size: clamp(2.2rem, 4.4vw, 4rem); }
.p-hero .hero-lead { max-width: 40em; }
.regions { list-style: none; margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--term-line); }
.regions li { padding-block: 18px 0; padding-inline: 0 18px; font-family: var(--f-head); font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 600; line-height: 1.05; color: #fff; }
.regions li + li { border-inline-start: 1px solid var(--term-line); padding-inline-start: 18px; }
.regions small { display: block; font-family: var(--f-text); font-size: .9rem; font-weight: 400; color: var(--fog); margin-top: 6px; }
.flow { list-style: none; counter-reset: fl; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 40px); }
.flow li { counter-increment: fl; border-top: 2px solid var(--ink); padding-top: 16px; }
.flow li::before { content: counter(fl); display: block; font-family: var(--f-head); font-weight: 700; font-size: 2.6rem; line-height: 1; margin-bottom: 10px; color: var(--wait-ink); font-variant-numeric: tabular-nums; }
.flow h3 { font-size: 1.45rem; margin: 0 0 8px; }
.flow p { color: var(--ink-2); margin: 0; }
.formulas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border: 1px solid var(--term-line); border-radius: 6px; overflow: hidden; }
.formula { padding: clamp(22px, 3vw, 44px); }
.formula + .formula { border-inline-start: 1px solid var(--term-line); background: #172230; }
.formula h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin: 0 0 6px; color: #fff; }
.formula .f-tag { color: var(--amber); font-weight: 600; margin: 0 0 16px; }
.formula ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.formula li { position: relative; padding-inline-start: 22px; color: #cdd5df; }
.formula li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 2px; background: var(--amber); }
.p-learn { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.p-learn figure { margin: 0; margin-inline-end: calc(-1 * var(--gut)); }
.p-learn img { display: block; width: 100%; height: auto; border-start-start-radius: 6px; border-end-start-radius: 6px; }
.fine { color: var(--ink-2); font-size: .93rem; max-width: 60em; margin: 28px 0 0; }
.term .fine { color: var(--fog); }
@media (max-width: 1023px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .formulas, .p-learn { grid-template-columns: minmax(0, 1fr); }
  .formula + .formula { border-inline-start: 0; border-top: 1px solid var(--term-line); }
  .p-learn figure { margin-inline: calc(-1 * var(--gut)); }
  .p-learn img { border-radius: 0; }
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regions li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- thank-you page, other public pages ---------- */
.thanks { padding-block: clamp(56px, 9vw, 120px); }
.thanks h1 { font-family: var(--f-head); font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; margin: 0 0 .4em; color: #fff; }
body.public .hero-sm h1, body.public .guide-hero h1 { font-family: var(--f-head); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.02; }
body.public .card { border-radius: 6px; }
body.public .eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .track { scroll-behavior: auto; }
  .js .qhero[data-auto="1"] .qtab.is-on .qbar { animation: none; }
}
@media print {
  .hero-stage, .track-ctrl, .lead-card { display: none; }
  body.public, .term, .term-2 { background: #fff; color: #000; }
}

/* ================= v1.5.1: the guide on paper (the PDF sent to customers, printing from the browser) =================
   Light page, no menu, footer or WhatsApp button (the risk warning closes the first page); a video becomes its picture with the address where to watch it;
   pictures, notes and steps are not cut between two pages. */
.g-print-logo, .v-print, .g-print-warn { display: none; }
.guide-pdf { margin: 14px 0 0; }
@media print {
  @page guide {
    margin: 14mm 14mm 16mm; background: #fff;
    @bottom-left { content: "QLE Pro"; font: 600 8pt 'Barlow', 'IBM Plex Sans Arabic', sans-serif; color: #6b7480; }
    @bottom-right { content: counter(page) " / " counter(pages); font: 600 8pt 'Barlow', sans-serif; color: #6b7480; }
  }
  /* right to left: the name on the right, the page on the left (LRM marks: "3 / 18", not "18 / 3") */
  @page guide-rtl {
    margin: 14mm 14mm 16mm; background: #fff;
    @bottom-right { content: "QLE Pro"; font: 600 8pt 'Barlow', 'IBM Plex Sans Arabic', sans-serif; color: #6b7480; }
    @bottom-left { content: "\200E" counter(page) " / " counter(pages) "\200E"; font: 600 8pt 'Barlow', sans-serif; color: #6b7480; }
  }
  html:has(> body.guide) { font-size: 14px; color-scheme: light; background: #fff; }
  body.guide {
    page: guide;
    --bg: #fff; --card: #fff; --card-2: #f5f6f8; --line: #d7dce3; --line-2: #c4ccd6;
    --text: #12181f; --text-2: #2b333d; --muted: #5a6470; --amber-2: #8f5400;
    --term: #fff; --snow: #12181f; --fog: #5a6470;
    display: block; min-height: 0; background: #fff; color: #12181f; font-size: 1rem; line-height: 1.55;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  html[dir="rtl"] body.guide { page: guide-rtl; }
  body.guide :lang(ar), body.guide :lang(ur) { line-height: 1.8; }
  body.guide .topbar, body.guide .wa-float, body.guide .foot-grid, body.guide .guide-toc-m, body.guide .g-pager,
  body.guide .g-anchor, body.guide .guide-pdf, body.guide .g-video video, body.guide .v-facade, body.guide .v-frame,
  body.guide .g-video:has(.v-missing) { display: none !important; }
  body.guide main.wrap { max-width: none; margin: 0; padding: 0; }
  body.guide a { color: #1f5fd1; }
  body.guide code { background: #eef1f4; color: #12181f; }
  body.guide .alert { background: #f5f6f8; border-color: #c4ccd6; color: #12181f; }

  /* first page: logo, title, introduction and contents */
  body.guide .guide-hero { padding: 0; margin: 0; }
  body.guide .g-print-logo { display: block; width: 60mm; height: auto; margin: 0 0 9mm; }
  body.guide .guide-hero .eyebrow { color: #8f5400; margin: 0 0 2mm; }
  body.guide .guide-hero h1 { font-size: 28pt; line-height: 1.1; color: #12181f; margin: 0 0 4mm; }
  body.guide .guide-hero .lead { max-width: none; font-size: 11.5pt; color: #2b333d; margin: 0 0 3mm; }
  body.guide .guide-hero .lead p { max-width: none; }
  body.guide .guide-layout { display: block; margin: 0; }
  body.guide .guide-toc { display: block; position: static; max-height: none; overflow: visible; margin: 7mm 0 0; padding: 0;
    background: none; border: 0; border-radius: 0; }
  body.guide .toc-title { font-size: 9pt; color: #5a6470; margin: 0 0 2mm; }
  body.guide .toc-list { gap: 0; }
  body.guide .toc-list a { align-items: baseline; padding: 1.7mm 0; border-radius: 0; border-bottom: .5pt solid #e1e5ea; color: #12181f; font-size: 10.5pt; line-height: 1.35; }
  body.guide .toc-list a::before { color: #a35f00; }
  body.guide .toc-list a::after { content: attr(data-page); margin-inline-start: auto; padding-inline-start: 6mm; color: #5a6470; font-variant-numeric: tabular-nums; }
  body.guide .guide-body { max-width: none; }
  /* the risk warning closes the first page (the footer of the site is not printed) */
  body.guide .g-print-warn { display: block; margin: 7mm 0 0; padding-top: 3mm; border-top: .75pt solid #d7dce3; font-size: 8.5pt;
    line-height: 1.5; color: #5a6470; break-after: page; }
  body.guide .g-print-warn strong { color: #12181f; }
  body.guide .g-print-copy { display: block; margin-top: 1.2mm; }

  /* chapters */
  body.guide .g-chapter { padding: 0; margin: 0 0 8mm; border: 0; }
  body.guide .g-chapter + .g-chapter { margin-top: 14mm; }   /* a margin, not a rule: dropped when a chapter starts a page */
  body.guide .g-chapter h2 { font-size: 19pt; margin: 0 0 3mm; color: #12181f; break-after: avoid; }
  body.guide .g-num { width: 8.5mm; height: 8.5mm; font-size: 12pt; transform: none; }
  body.guide .g-summary { font-size: 11pt; break-after: avoid; }
  body.guide p, body.guide li, body.guide dd { orphans: 3; widows: 3; }
  body.guide .g-fig, body.guide .g-video, body.guide .g-note, body.guide .g-terms > div, body.guide .g-steps > li,
  body.guide .g-faq .faq, body.guide .v-print { break-inside: avoid; }
  body.guide .g-steps { margin: 3mm 0 4mm; gap: 2mm; }
  body.guide .steps li { padding-block: 2.6mm; background: #f5f6f8; border-color: #dfe3e8; }
  body.guide .g-note { margin: 4mm 0; padding: 3mm 4mm; }
  body.guide .g-tip { background: #f0faf3; border-color: #8fd5a6; }
  body.guide .g-tip .g-note-t { color: #17773a; }
  body.guide .g-warn { background: #fff7e9; border-color: #efb653; }
  body.guide .g-terms { margin: 3mm 0 4mm; gap: 1.6mm; }
  body.guide .g-terms div { padding: 2.2mm 3.5mm; background: #f5f6f8; border-color: #dfe3e8; }
  body.guide .g-faq .faq { border-color: #dfe3e8; }
  body.guide .g-faq .faq:last-child { border-bottom: 0; }
  body.guide .g-faq .faq > summary { padding: 3mm 0 1.4mm; font-size: 11pt; font-weight: 700; }
  body.guide .g-faq .faq > summary::after { content: none; }
  body.guide .g-faq .faq p { color: #2b333d; margin: 0 0 3mm; }

  /* pictures: whole, at most about half a page high */
  body.guide .g-fig { margin: 4mm 0 5mm; }
  body.guide .g-zoom { border-radius: 0; }
  body.guide .g-fig img { width: auto; max-width: 100%; max-height: 118mm; margin-inline: auto; border: .5pt solid #c4ccd6; border-radius: 2pt; background: none; }
  body.guide .g-fig figcaption { text-align: center; font-size: 8.5pt; margin-top: 2mm; }

  /* videos: the picture and the address where to watch it */
  body.guide .g-video { display: flex; flex-direction: column; gap: 1.6mm; margin: 4mm 0 5mm; }
  body.guide .v-print { order: -1; display: grid; grid-template-columns: 46mm minmax(0, 1fr); column-gap: 5mm; align-content: center; margin: 0;
    padding: 3mm; border: .75pt solid #c4ccd6; border-inline-start: 3pt solid #f5a524; border-radius: 2pt; background: #fbf9f4; }
  body.guide .v-print-img { grid-row: 1 / span 2; align-self: center; display: block; width: 100%; height: auto; border-radius: 1.5pt; }
  body.guide .v-print a { align-self: end; color: #12181f; font-weight: 600; font-size: 11.5pt; line-height: 1.35; }
  body.guide .v-print-url { align-self: start; display: block; margin-top: 1.2mm; font-size: 8.5pt; color: #1f5fd1; overflow-wrap: anywhere; text-align: left; }
  html[dir="rtl"] body.guide .v-print-url { text-align: right; }
  body.guide .v-print:not(:has(.v-print-img)) { grid-template-columns: minmax(0, 1fr); }
  body.guide .g-video figcaption { margin: 0; font-size: 8.5pt; color: #5a6470; }
  body.guide .v-lang { background: #eef1f4; color: #2b333d; }

  body.guide .footer { display: none; }
}
