/* 🌐 XSignal Bot landing page: simple colors (white, ink, one emerald accent from the logo), real bot screens and
   videos, light interactions. Design bans: copy/brand-kit.md section 17. */
:root {
  --bg: #FFFFFF; --alt: #F5F8F6; --card: #FFFFFF; --line: #E4EBE7; --line2: #D3DED8;
  --ink: #0E1A15; --text: #26332D; --muted: #5E6E66; --acc: #10B981; --acc-d: #059669; --acc-l: #E7F8F1;
  --loss: #E5484D; --dark: #0B1411;
  --head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --r: 18px; --wrap: 1180px;
  --sh: 0 1px 2px rgba(14,26,21,.05), 0 18px 40px -24px rgba(14,26,21,.25);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.lp { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 var(--body); overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: var(--acc-d); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.lp-wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.lp-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--acc); color: #fff; padding: 8px 14px; border-radius: 8px; }
.lp-skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.up { color: var(--acc-d) !important; } .dn { color: var(--loss) !important; }

/* ---------------------------------------------------------------- nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.lp-nav.solid { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14,26,21,.35); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 18px var(--head); }
.lp-brand img { border-radius: 10px; }
.lp-links { display: flex; gap: 24px; margin-inline-start: 14px; }
.lp-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.lp-links a:hover { color: var(--ink); }
.lp-nav-act { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lp-lang { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 10px; }
.lp-lang:hover { color: var(--ink); }

/* ---------------------------------------------------------------- buttons (never pills) */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 15px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.lp-btn:hover { transform: translateY(-1px); } .lp-btn:active { transform: translateY(0); }
.lp-btn-main { background: var(--acc); color: #fff; box-shadow: 0 10px 24px -12px rgba(16,185,129,.8); }
.lp-btn-main:hover { background: var(--acc-d); }
.lp-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line2); }
.lp-btn-ghost:hover { border-color: var(--acc); color: var(--acc-d); }
.lp-btn-white { background: #fff; color: var(--acc-d); }
.lp-btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.lp-btn-line:hover { background: rgba(255,255,255,.12); }
.lp-btn-lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 12px; }

/* ---------------------------------------------------------------- hero */
.lp-hero { padding: 56px 0 30px; background: radial-gradient(900px 420px at 85% 0%, var(--acc-l), transparent 70%); }
[dir="rtl"] .lp-hero { background: radial-gradient(900px 420px at 15% 0%, var(--acc-l), transparent 70%); }
.lp-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lp-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--acc-d); font: 600 14.5px var(--body); background: var(--acc-l);
  padding: 6px 12px; border-radius: 8px; margin-bottom: 20px; }
.lp-live { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: lpPulse 1.8s infinite; }
@keyframes lpPulse { 70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.lp-hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.15; font-weight: 700; }
.lp-lead { margin-top: 20px; font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--muted); max-width: 580px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-cta-center { justify-content: center; }
.lp-proof { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14.5px; }
.lp-proof i { color: var(--acc); margin-inline-end: 8px; }

/* the vertical guide video, as a story card, with floating notifications */
.lp-hero-visual { position: relative; justify-self: center; width: min(330px, 100%); }
.lp-story { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #0B1411;
  box-shadow: 0 2px 4px rgba(14,26,21,.06), 0 40px 80px -36px rgba(14,26,21,.55); border: 6px solid #0B1411; }
.lp-story video { width: 100%; height: 100%; object-fit: cover; }
.lp-story-lg { width: min(360px, 100%); justify-self: center; }
.lp-chip { position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh); font-size: 13px; animation: lpFloat 6s ease-in-out infinite; }
.lp-chip i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-l); color: var(--acc-d); flex: none; }
.lp-chip b { display: block; color: var(--ink); font-size: 13.5px; } .lp-chip span { color: var(--muted); }
.lp-chip-a { top: 12%; inset-inline-end: -46%; }
.lp-chip-b { top: 46%; inset-inline-start: -40%; animation-delay: -2s; }
.lp-chip-c { bottom: 10%; inset-inline-end: -38%; animation-delay: -4s; }
@keyframes lpFloat { 50% { transform: translateY(-10px); } }
.lp-tilt { transition: transform .25s ease; transform-style: preserve-3d; will-change: transform; }

.lp-stats { margin-top: 54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
.lp-stats div { padding: 20px 22px; border-inline-end: 1px solid var(--line); }
.lp-stats div:last-child { border-inline-end: 0; }
.lp-stats b { display: block; font: 700 30px var(--head); color: var(--ink); direction: ltr; unicode-bidi: isolate; text-align: start; }
.lp-stats span { color: var(--muted); font-size: 14px; }

.lp-platforms { border-block: 1px solid var(--line); background: var(--alt); margin-top: 36px; }
.lp-platforms-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; padding: 18px 0; color: var(--muted); font-size: 14px; }
.lp-platforms b { font: 600 16px var(--head); color: var(--text); } .lp-platforms b i { color: var(--acc); margin-inline-end: 8px; }

/* ---------------------------------------------------------------- sections */
.lp-sec { padding: clamp(70px, 9vw, 120px) 0; }
.lp-alt { background: var(--alt); }
.lp-sec-head { max-width: 560px; }
.lp-sec-head.lp-center { max-width: 760px; }
.lp-eyebrow { display: inline-block; color: var(--acc-d); font: 600 14px var(--body); margin-bottom: 10px; }
.lp-sec-head h2 { font-size: clamp(27px, 3.2vw, 42px); line-height: 1.22; font-weight: 700; }
.lp-sec-head p { margin-top: 16px; color: var(--muted); font-size: 17.5px; }
.lp-center { text-align: center; margin-inline: auto; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.lp-split-rev > :first-child { order: 2; }
.lp-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.lp-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.lp-checks i { color: #fff; background: var(--acc); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; flex: none; margin-top: 4px; }
.lp-small { color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* ---- how it works: steps + the phone */
.lp-how { margin-top: 50px; display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.lp-how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-how-step { width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 14px; text-align: start; align-items: start; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lp-how-step:hover { border-color: var(--line2); transform: translateY(-1px); }
.lp-how-step.on { border-color: var(--acc); box-shadow: 0 16px 34px -24px rgba(16,185,129,.9); }
.lp-how-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--alt); color: var(--muted); transition: all .2s; }
.lp-how-step.on .lp-how-ic { background: var(--acc); color: #fff; }
.lp-how-txt b { display: block; font: 600 18px var(--head); color: var(--ink); margin-top: 2px; }
.lp-how-txt small { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.lp-how-bar { position: absolute; inset: auto 0 0 0; height: 3px; background: transparent; }
.lp-how-bar i { display: block; height: 100%; width: 0; background: var(--acc); }
.lp-how-step.on .lp-how-bar i { animation: lpBar var(--dur, 4.5s) linear forwards; }
.lp-how.paused .lp-how-step.on .lp-how-bar i { animation-play-state: paused; }
@keyframes lpBar { to { width: 100%; } }
.lp-phone { background: #0B1411; border-radius: 40px; padding: 12px; box-shadow: 0 40px 80px -36px rgba(14,26,21,.6); }
.lp-phone-screen { border-radius: 30px; overflow: hidden; background: #0E1621; aspect-ratio: 840 / 870; }
.lp-phone-screen img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .35s ease; }
.lp-phone-screen img.swap { opacity: 0; transform: scale(.98); }

/* ---- signal demo */
.lp-demo-box { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--sh); }
.lp-msg { background: #EEF4FB; border-radius: 16px; padding: 14px 16px; max-width: 320px; }
.lp-msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--ink); }
.lp-msg-head small { color: var(--muted); margin-inline-start: auto; font-size: 12px; }
.lp-av { width: 30px; height: 30px; border-radius: 50%; background: #2AABEE; color: #fff; display: grid; place-items: center; font-size: 13px; }
.lp-msg-body { font: 600 15px/1.6 var(--body); color: #1C2B3A; direction: ltr; text-align: left; min-height: 4.8em; }
.lp-msg-body .caret { display: inline-block; width: 2px; height: 1em; background: var(--acc); vertical-align: -2px; animation: lpBlink 1s steps(1) infinite; }
@keyframes lpBlink { 50% { opacity: 0; } }
.lp-arrow { display: flex; align-items: center; gap: 10px; color: var(--acc); font-size: 13px; margin: 12px 8px; }
.lp-arrow span { color: var(--muted); }
.lp-parsed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-parsed div { background: var(--alt); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; opacity: .3; transform: translateY(6px); transition: opacity .4s, transform .4s, border-color .4s; }
.lp-parsed div.on { opacity: 1; transform: none; border-color: rgba(16,185,129,.45); background: #fff; }
.lp-parsed span { display: block; color: var(--muted); font-size: 12px; }
.lp-parsed b { font: 600 15px var(--head); color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.lp-filled { display: flex; gap: 12px; align-items: center; background: var(--acc-l); border: 1px solid rgba(16,185,129,.35); border-radius: 14px; padding: 12px 14px; opacity: .3; transition: opacity .5s; }
.lp-filled.on { opacity: 1; }
.lp-filled i { color: var(--acc); font-size: 22px; }
.lp-filled b { display: block; color: var(--ink); } .lp-filled small { color: var(--muted); }
.lp-note { color: var(--muted); font-size: 12.5px; margin-top: 12px; }

/* ---- features (bento: different sizes, never three identical cards) */
.lp-bento { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(180px, auto); gap: 16px; }
.lp-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.lp-tile:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: var(--sh); }
.lp-tile h3 { font-size: 18.5px; margin: 14px 0 8px; } .lp-tile p { color: var(--muted); font-size: 15.5px; }
.lp-t-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-l); color: var(--acc-d); font-size: 18px; }
.lp-t-big { grid-row: span 2; background: linear-gradient(180deg, var(--acc-l), #fff 60%); }
.lp-t-big h3 { font-size: 25px; line-height: 1.3; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lp-chips span { background: #fff; border: 1px solid var(--line2); border-radius: 8px; padding: 4px 10px; font-size: 13px; color: var(--text); }
.lp-t-card { grid-column: span 2; display: grid; grid-template-columns: 1fr 230px; gap: 22px; align-items: center; }
.lp-t-card img { width: 100%; border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(14,26,21,.5); transform: rotate(-2deg); transition: transform .3s; }
[dir="rtl"] .lp-t-card img { transform: rotate(2deg); }
.lp-t-card:hover img { transform: rotate(0) scale(1.03); }

/* ---- videos */
.lp-watch { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.lp-vtabs { display: grid; gap: 8px; margin-top: 26px; }
.lp-vtabs button { display: flex; align-items: center; gap: 12px; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  font: 600 15.5px var(--body); color: var(--text); cursor: pointer; transition: all .2s; }
.lp-vtabs button i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--alt); color: var(--muted); font-size: 12px; }
.lp-vtabs button:hover { border-color: var(--line2); }
.lp-vtabs button.on { border-color: var(--acc); color: var(--ink); }
.lp-vtabs button.on i { background: var(--acc); color: #fff; }
.lp-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; text-decoration: none; }

/* ---- verifier */
.lp-vcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--sh); }
.lp-vcard-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.lp-vcard-top b { font: 600 17px var(--head); color: var(--ink); } .lp-vcard-top small { color: var(--muted); font-size: 12px; }
.lp-vstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.lp-vstats div { background: var(--alt); border-radius: 12px; padding: 10px 12px; }
.lp-vstats span { display: block; color: var(--muted); font-size: 12px; } .lp-vstats b { font: 700 22px var(--head); color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.lp-vchart { width: 100%; height: 150px; direction: ltr; }
.lp-vchart .area { fill: url(#lpFill); } .lp-vchart .line { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 2.2s ease; }
.lp-vcard.on .lp-vchart .line { stroke-dashoffset: 0; }

/* ---- where it runs + security */
.lp-own-in { display: grid; gap: 40px; }
.lp-own-big { max-width: 760px; }
.lp-own-big h2 { font-size: clamp(27px, 3.4vw, 44px); line-height: 1.2; }
.lp-own-big p { margin-top: 16px; color: var(--muted); font-size: 17.5px; }
.lp-safe { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.lp-safe li { padding: 24px 20px; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.lp-safe li:last-child { border-inline-end: 0; }
.lp-safe i { color: var(--acc); font-size: 22px; margin-bottom: 4px; } .lp-safe b { color: var(--ink); font: 600 16.5px var(--head); } .lp-safe span { color: var(--muted); font-size: 14.5px; }

/* ---- pricing */
.lp-dur { display: flex; justify-content: center; gap: 4px; margin: 32px auto 28px; padding: 4px; background: var(--alt); border: 1px solid var(--line); border-radius: 12px; width: max-content; max-width: 100%; }
.lp-dur button { font: 600 14.5px var(--body); color: var(--muted); background: none; border: 0; padding: 9px 18px; border-radius: 9px; cursor: pointer; }
.lp-dur button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14,26,21,.12); }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.lp-plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.lp-plan:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.lp-plan h3 { font-size: 20px; } .lp-plan > small { color: var(--muted); font-size: 13.5px; min-height: 2.6em; margin-top: 4px; }
.lp-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 14px; direction: ltr; justify-content: flex-end; }
[dir="ltr"] .lp-price { justify-content: flex-start; }
.lp-price b { font: 700 34px var(--head); color: var(--ink); } .lp-price span { color: var(--muted); font-size: 14px; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; color: var(--text); font-size: 14.5px; flex: 1; }
.lp-plan li { display: flex; align-items: baseline; gap: 8px; }
.lp-plan li::before { content: "\f00c"; font: 900 11px "Font Awesome 6 Free"; color: var(--acc); flex: none; }
.lp-plan .lp-btn { width: 100%; }
.lp-plan-hot { border: 2px solid var(--acc); box-shadow: 0 24px 50px -30px rgba(16,185,129,.7); }
.lp-tag { position: absolute; top: -12px; inset-inline-end: 16px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 6px; }
.lp-plan-free { background: var(--alt); border-style: dashed; }

/* ---- FAQ */
.lp-faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.lp-qs details { border-bottom: 1px solid var(--line2); }
.lp-qs summary { list-style: none; cursor: pointer; padding: 20px 0; font: 600 17.5px var(--head); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.lp-qs summary::-webkit-details-marker { display: none; }
.lp-qs summary::after { content: "\2b"; font: 900 14px "Font Awesome 6 Free"; color: var(--acc); transition: transform .25s; flex: none; margin-top: 4px; }
.lp-qs details[open] summary::after { transform: rotate(45deg); }
.lp-qs p { color: var(--muted); padding: 0 0 22px; font-size: 16px; }

/* ---- final call: the one colored band */
.lp-final { padding: clamp(70px, 9vw, 110px) 0; background: var(--acc-d); color: #fff; }
.lp-final-in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lp-final img { border-radius: 20px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.45); }
.lp-final h2 { color: #fff; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.15; max-width: 760px; }
.lp-final p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 560px; }

/* ---- footer */
.lp-foot { background: var(--dark); color: #B9C7C0; padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); }
.lp-foot .lp-brand { color: #fff; }
.lp-foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.lp-foot-brand p { font-size: 14.5px; margin-top: 12px; max-width: 360px; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.lp-foot-links a { color: #DCE6E1; text-decoration: none; font-size: 14.5px; } .lp-foot-links a:hover { color: #fff; }
.lp-foot-links i { color: var(--acc); margin-inline-end: 8px; }
.lp-risk { grid-column: 1 / -1; color: #8FA39B; font-size: 13px; line-height: 1.7; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; }
.lp-foot .lp-small { grid-column: 1 / -1; margin: 0; color: #8FA39B; }

/* ---------------------------------------------------------------- reveal on scroll (only while the script runs) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- tablets */
@media (max-width: 1023px) {
  .lp-links { display: none; }
  .lp-hero-in, .lp-split, .lp-faq-in, .lp-how, .lp-watch { grid-template-columns: 1fr; }
  .lp-split-rev > :first-child { order: 0; }
  .lp-hero-visual { width: min(300px, 70%); margin-top: 10px; }
  .lp-chip-a { inset-inline-end: -30%; } .lp-chip-b { inset-inline-start: -30%; } .lp-chip-c { inset-inline-end: -26%; }
  .lp-how .lp-phone { max-width: 380px; justify-self: center; width: 100%; }
  .lp-bento { grid-template-columns: 1fr 1fr; } .lp-t-big { grid-row: auto; grid-column: span 2; }
  .lp-safe { grid-template-columns: 1fr 1fr; } .lp-safe li:nth-child(2) { border-inline-end: 0; } .lp-safe li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lp-stats { grid-template-columns: 1fr 1fr; } .lp-stats div:nth-child(2) { border-inline-end: 0; } .lp-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  body.lp { font-size: 16px; }
  .lp-wrap { width: calc(100% - 32px); }
  .lp-nav-in { height: 60px; gap: 8px; }
  .lp-brand span { display: none; }
  .lp-nav-act { gap: 6px; }
  .lp-nav-act .lp-btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .lp-nav-act .lp-btn-start span { display: none; }
  .lp-nav-act .lp-btn-start { width: 40px; padding: 0; }
  .lp-lang { padding: 8px 6px; }
  .lp-hero { padding: 30px 0 10px; }
  .lp-hero h1 { font-size: 32px; }
  .lp-cta .lp-btn { width: 100%; }
  .lp-hero-visual { width: 62%; }
  .lp-chip { padding: 8px 10px; font-size: 12px; } .lp-chip i { width: 26px; height: 26px; }
  .lp-chip-a { inset-inline-end: -24%; top: 6%; } .lp-chip-b { inset-inline-start: -24%; } .lp-chip-c { inset-inline-end: -22%; }
  .lp-stats b { font-size: 24px; } .lp-stats div { padding: 14px 16px; }
  .lp-parsed { grid-template-columns: repeat(2, 1fr); }
  .lp-bento { grid-template-columns: 1fr; } .lp-t-big, .lp-t-card { grid-column: auto; }
  .lp-t-card { grid-template-columns: 1fr; } .lp-t-card img { max-width: 260px; justify-self: center; }
  .lp-tile { padding: 20px; }
  .lp-vstats b { font-size: 18px; }
  .lp-safe { grid-template-columns: 1fr; } .lp-safe li { border-inline-end: 0 !important; border-bottom: 1px solid var(--line); } .lp-safe li:last-child { border-bottom: 0; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-foot-in { grid-template-columns: 1fr; }
  .lp-story-lg { width: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- live Telegram chats drawn in HTML (always in the page's language) */
.tg { --tg-bg: #0E1621; --tg-in: #182533; --tg-me: #2B5278; --tg-txt: #E9EEF3; --tg-dim: #8A9AAB;
  position: relative; width: min(340px, 100%); justify-self: center; background: var(--tg-bg); border: 8px solid #0B1411; border-radius: 34px;
  overflow: hidden; box-shadow: 0 2px 4px rgba(14,26,21,.06), 0 40px 80px -36px rgba(14,26,21,.6); color: var(--tg-txt); font-size: 13.5px; line-height: 1.5; }
.tg-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17212B; border-bottom: 1px solid rgba(255,255,255,.04); }
.tg-top img { border-radius: 50%; } .tg-top b { display: block; font-size: 14.5px; color: #fff; } .tg-top small { color: var(--tg-dim); font-size: 12px; }
.tg-feed, .tg-scr { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 16px; min-height: 400px; justify-content: flex-start; }
.tg-msg { align-self: flex-start; max-width: 88%; background: var(--tg-in); border-radius: 14px; border-end-start-radius: 4px; padding: 9px 12px;
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.tg-msg.show, .tg-scr.on .tg-msg { opacity: 1; transform: none; }
.tg-msg p { margin: 0; } .tg-msg p + p { margin-top: 2px; }
.tg-me { align-self: flex-end; background: var(--tg-me); border-radius: 14px; border-end-end-radius: 4px; font-family: ui-monospace, Consolas, monospace; direction: ltr; }
.tg-fwd small { display: block; color: #6AB3F3; font-size: 12px; margin-bottom: 3px; }
.tg-fwd code { display: block; font: 600 13px/1.55 ui-monospace, Consolas, monospace; direction: ltr; text-align: left; color: #fff; }
.tg-h { font-weight: 600; color: #fff; display: flex; align-items: center; gap: 7px; }
.tg-h i { color: var(--acc); font-size: 12px; }
.tg-dim { color: var(--tg-dim); font-size: 12.5px; }
.tg .up { color: #4ADE80 !important; } .tg .dn { color: #F87171 !important; }
.tg-kb { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin-top: 8px; }
.tg-kb2 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .tg-kb4 { grid-auto-columns: 1fr; }
.tg-kb span { background: rgba(255,255,255,.08); border-radius: 8px; padding: 6px 4px; text-align: center; font-size: 12.5px; color: #DCE6F0; display: flex; gap: 6px; align-items: center; justify-content: center; }
.tg-kb span i { font-size: 11px; color: var(--tg-dim); }
.tg-kb .tg-pick { background: var(--acc); color: #fff; font-weight: 600; }
.tg-card { border: 1px solid rgba(74,222,128,.35); }
.tg-res { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 2px; }
.tg-res b { font: 700 22px var(--head); direction: ltr; } .tg-res span { color: #4ADE80; font-weight: 600; }
/* the hero plays the messages one after the other (landing.js); the how-it-works phone swaps whole screens */
.tg-how .tg-scr { position: absolute; inset: 59px 0 0 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
.tg-how .tg-scr.on { opacity: 1; position: relative; inset: auto; }
.tg-how .tg-scr .tg-msg { transition-delay: 0s; }
.tg-how .tg-scr.on .tg-msg:nth-child(2) { transition-delay: .35s; } .tg-how .tg-scr.on .tg-msg:nth-child(3) { transition-delay: .8s; }
.lp-how .tg-how { width: 100%; max-width: 360px; }

/* ---------------------------------------------------------------- trade simulator */
.lp-sim { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.lp-sim-pick { display: grid; gap: 10px; margin-top: 26px; }
.lp-sim-pick button { display: flex; gap: 14px; align-items: center; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lp-sim-pick button:hover { transform: translateY(-1px); border-color: var(--line2); }
.lp-sim-pick i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--alt); color: var(--muted); flex: none; transition: all .2s; }
.lp-sim-pick b { display: block; color: var(--ink); font: 600 16.5px var(--head); } .lp-sim-pick small { color: var(--muted); font-size: 14px; }
.lp-sim-pick .on { border-color: var(--c); box-shadow: 0 16px 34px -26px var(--c); }
.lp-sim-pick .on i { background: var(--c); color: #fff; }
.lp-sim-win { --c: #10B981; } .lp-sim-loss { --c: #E5484D; } .lp-sim-be { --c: #E0A21B; }
.lp-sim-stage { display: grid; grid-template-columns: 1fr 230px; gap: 18px; align-items: center; }
.lp-sim-chart { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 12px; box-shadow: var(--sh); }
.lp-sim-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; direction: ltr; }
.lp-sim-top b { font: 700 16px var(--head); color: var(--ink); } .lp-sim-top span { font: 600 15px var(--head); color: var(--text); font-variant-numeric: tabular-nums; }
.lp-sim-top em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--alt); border-radius: 6px; padding: 2px 8px; }
.lp-sim-top em.win { color: #047857; background: var(--acc-l); } .lp-sim-top em.loss { color: #B42318; background: #FDECEC; } .lp-sim-top em.be { color: #92600A; background: #FDF4DF; }
.lp-sim-chart svg { width: 100%; height: 220px; display: block; overflow: visible; direction: ltr; }
.lp-sim-chart .g { stroke-width: 1.2; stroke-dasharray: 5 5; }
.lp-sim-chart .tp1, .lp-sim-chart .tp2 { stroke: #10B981; color: #059669; } .lp-sim-chart .en { stroke: #94A3B8; color: #64748B; } .lp-sim-chart .sl { stroke: #E5484D; color: #E5484D; }
#simPath { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
#simDot { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.lp-sim-lbl span { position: absolute; right: 18px; font-size: 11px; font-weight: 600; transform: translateY(-110%); direction: ltr; }
.lp-sim-card { perspective: 1200px; }
.lp-sim-flip { transition: transform .7s cubic-bezier(.3,.7,.2,1), opacity .4s; transform-style: preserve-3d; }
.lp-sim-flip img { width: 100%; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(14,26,21,.6); }
.lp-sim-flip.wait { transform: rotateY(90deg); opacity: .2; }
@media (max-width: 1023px) { .lp-sim { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .lp-sim-stage { grid-template-columns: 1fr; } .lp-sim-card { width: 74%; justify-self: center; }
  .tg-feed, .tg-scr { min-height: 380px; }
}
.lp-t-wide { grid-column: span 2; } @media (max-width: 640px) { .lp-t-wide { grid-column: auto; } }
.lp-sim-flip img, .tg img { height: auto; } .lp-sim-card { max-width: 300px; justify-self: center; width: 100%; }

/* 📱 hero chat on phones and tablets: wider (less wrapping) and a fixed, shorter height; the messages sit at the
   bottom like Telegram and the oldest ones slide out of view, so the phone is never tall or half empty */
@media (max-width: 1023px) {
  .lp-hero-visual { width: min(360px, 100%) !important; }
  #heroChat { width: 100%; border-width: 6px; border-radius: 28px; }
  #heroChat .tg-feed { min-height: 0; height: 300px; justify-content: flex-end; overflow: hidden; padding: 10px 10px 12px; gap: 6px; }
  #heroChat .tg-msg { max-width: 92%; padding: 8px 11px; }
  #heroChat .tg-msg:not(.show) { display: none; }   /* hidden messages take no room: the feed stays anchored */
  #heroChat .tg-top { padding: 9px 12px; }
}
@media (max-width: 640px) {
  #heroChat { font-size: 13px; }
  #heroChat .tg-feed { height: 270px; }
  #heroChat .tg-fwd code { font-size: 12.5px; }
}
@media (max-width: 1023px) {
  #heroChat .tg-msg.show { animation: tgIn .4s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes tgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #heroChat .tg-msg.show { animation: none; } }
@media (max-width: 1023px) {   /* the oldest message fades out under the chat header instead of a hard cut */
  #heroChat .tg-feed { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px); mask-image: linear-gradient(to bottom, transparent 0, #000 34px); }
}

/* «Try it yourself», desktop: same sizes as before, only lowered so the chart and the card end on the line of the
   last button (instead of being centred higher) */
@media (min-width: 1024px) {
  .lp-sim { align-items: end; }
}

/* 👑 VIP-only items on the VIP plan */
.lp-plan li.lp-vip { color: var(--ink); }
.lp-plan li.lp-vip::before { content: "\f521"; color: #E0A21B; font-size: 12px; }

/* ---------------------------------------------------------------- motion (GSAP + Lenis + the React Bits ports in lp-bits.js) */
.lp-hero { position: relative; isolation: isolate; }
.lp-rays { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.xb-rays-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.xb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.xb-word { display: inline-block; }
.xb-star { position: relative; isolation: isolate; }
.xb-star-light { position: absolute; top: -48px; left: -48px; width: calc(100% + 96px); height: calc(100% + 96px); pointer-events: none; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .lp-rays { display: none; } }
