/* TSC Trader website. One family (Readex Pro, Arabic + Latin), logical properties so RTL mirrors itself. */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-arabic-wght-normal.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: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-latin-wght-normal.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;
}

:root {
  --paper: #eef1ec;
  --paper-2: #e2e8e3;
  --card: #fbfcfa;
  --ink: #1b2b27;
  --ink-2: #4c5d58;
  --line: #c6d0ca;
  --gold: #b5862a;
  --gold-soft: #f0e2c2;
  --tg: #2f7fbf;
  --profit: #2c7a50;
  --loss: #ad3d2b;
  --on-ink: #e9eee9;
  --on-ink-2: #a9b8b2;
  --wrap: 72rem;
  --r: 10px;
  --font: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 340;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] body { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 560; line-height: 1.15; letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.125rem; font-weight: 520; }
p { margin: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 44rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: var(--on-ink); padding: .6rem 1rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.35rem; border-radius: 999px; font-weight: 500; text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s, color .15s; }
.btn-sm { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; }
.btn-solid { background: var(--ink); color: var(--on-ink); }
.btn-solid:hover { background: #2b3f3a; }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #c9993a; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; font-size: 1.08rem; }
.brand img { border-radius: 7px; }
.nav { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav { margin-inline-start: auto; }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.lang { font-size: .95rem; text-decoration: none; padding: .3rem .1rem; }
.lang:hover { text-decoration: underline; }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 580; max-width: 19ch; }
[dir="rtl"] .hero h1 { max-width: 17ch; }
.lead { margin-block: 1.4rem 2rem; font-size: 1.2rem; color: var(--ink-2); max-width: 36rem; }

/* The demo: a channel post turning into an order ticket */
.demo { margin: 0; position: relative; display: grid; justify-items: start; }
.tg { width: min(100%, 22rem); background: #fff; border-radius: 14px 14px 14px 4px; padding: .8rem 1rem .6rem; box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(27, 43, 39, .45); }
[dir="rtl"] .tg { border-radius: 14px 14px 4px 14px; }
.tg-head { display: flex; align-items: center; gap: .5rem; margin-block-end: .35rem; }
.tg-avatar { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--tg); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
.tg-name { color: var(--tg); font-weight: 520; font-size: .95rem; }
.tg-msg { display: grid; font-size: 1.02rem; line-height: 1.55; }
.tg-msg .line { justify-self: start; padding-inline: .2rem; margin-inline: -.2rem; border-radius: 3px; animation: mark 1.2s ease-out .5s both; }
.tg-msg .line:nth-child(2) { animation-delay: .78s; }
.tg-msg .line:nth-child(3) { animation-delay: 1.06s; }
.tg-msg .line:nth-child(4) { animation-delay: 1.34s; }
.tg-time { justify-self: end; font-size: .75rem; color: #8a9893; }
@keyframes mark { 0% { background: transparent; } 35% { background: var(--gold-soft); } 100% { background: transparent; } }

.link { height: 2.75rem; margin-inline-start: 2.25rem; width: 2px; background: var(--line); position: relative; overflow: hidden; }
.link span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; animation: grow .45s ease-out 1.75s both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.ticket { width: min(100%, 25rem); margin-inline-start: 1rem; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 1rem 1.15rem .95rem; position: relative; }
.ticket::before { content: ""; position: absolute; inset-inline: 1rem; top: -1px; border-top: 2px dashed var(--paper); }
.ticket-title { display: flex; align-items: center; gap: .5rem; font-weight: 560; margin-block-end: .6rem; animation: appear .3s ease-out 2.15s both; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--profit); }
.ticket dl { margin: 0; display: grid; }
.ticket .row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .38rem; border-top: 1px solid var(--line); animation: appear .3s ease-out 2.3s both; }
.ticket .row:nth-child(2) { animation-delay: 2.44s; }
.ticket .row:nth-child(3) { animation-delay: 2.58s; }
.ticket .row:nth-child(4) { animation-delay: 2.72s; }
.ticket .row:nth-child(5) { animation-delay: 2.86s; }
.ticket dt { color: var(--ink-2); }
.ticket dd { margin: 0; font-weight: 500; }
.ticket .row:nth-child(3) dd { color: var(--loss); }
.ticket .row:nth-child(4) dd { color: var(--profit); }
.ticket-checks { margin-block-start: .55rem; padding-block-start: .55rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); animation: appear .3s ease-out 3.1s both; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Sections */
.band { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.band-soft { background: var(--paper-2); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink a { color: var(--on-ink); }
.sec-head { max-width: 40rem; margin-block-end: 2.5rem; }
.sec-head p { margin-block-start: .8rem; color: var(--ink-2); font-size: 1.1rem; }
.band-ink .sec-head p { color: var(--on-ink-2); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: s; border-top: 1.5px solid var(--ink); padding-block-start: 1rem; }
.steps li::before { content: counter(s); display: block; font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--gold); margin-block-end: .8rem; }
.steps p { margin-block-start: .5rem; color: var(--ink-2); }

.reads-cols, .reads li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem; }
.reads-cols { font-size: .9rem; color: var(--on-ink-2); padding-block-end: .6rem; }
.reads { list-style: none; margin: 0; padding: 0; }
.reads li { align-items: center; padding-block: 1.05rem; border-top: 1px solid #34463f; }
.says { justify-self: start; background: #fff; color: var(--ink); padding: .5rem .85rem; border-radius: 12px 12px 12px 3px; font-size: 1.02rem; }
[dir="rtl"] .says { border-radius: 12px 12px 3px 12px; }
.does { color: var(--on-ink); }
.smart { margin-block-start: 2.5rem; padding: 1.4rem 1.5rem; border: 1px solid #3d5149; border-radius: var(--r); max-width: 46rem; }
.smart p { margin-block-start: .5rem; color: var(--on-ink-2); }

.safety { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem 2.5rem; }
.safety li { border-inline-start: 2px solid var(--gold); padding-inline-start: 1rem; }
.safety p { margin-block-start: .4rem; color: var(--ink-2); }

.brokers { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 480; }
.note { color: var(--ink-2); max-width: 44rem; font-size: .98rem; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.price { margin-block-start: .6rem; font-size: 1.9rem; font-weight: 560; line-height: 1.1; }
.plans-note { margin-block-start: 1.5rem; }
.plan { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 1.5rem; }
.plan:first-child { background: var(--card); }
.plan p:not(.price) { margin-block-start: .5rem; color: var(--ink-2); }

.faq-in { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 500; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.4rem; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-block-end: 1.1rem; color: var(--ink-2); max-width: 40rem; }

.dl-in > * { max-width: 40rem; }
.dl-in p { margin-block: 1rem 1.75rem; color: var(--on-ink-2); font-size: 1.1rem; }

/* Legal pages */
.legal { padding-block: 4rem 5rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal .meta { color: var(--ink-2); margin-block: .6rem 2rem; font-size: .95rem; }
.legal p + p { margin-block-start: 1.1rem; }
.legal .btn { margin-block-start: 1rem; text-decoration: none; }

.wide { max-width: 60rem; }
.table-wrap { overflow-x: auto; margin-block: 1.5rem; }
.providers { width: 100%; border-collapse: collapse; font-size: .98rem; }
.providers th, .providers td { text-align: start; vertical-align: top; padding: .75rem .9rem .75rem 0; border-top: 1px solid var(--line); }
[dir="rtl"] .providers th, [dir="rtl"] .providers td { padding: .75rem 0 .75rem .9rem; }
.providers thead th { font-weight: 500; color: var(--ink-2); border-top: 0; font-size: .9rem; }
.providers tbody th { font-weight: 560; white-space: nowrap; }
.providers td:last-child { color: var(--ink-2); }

/* Footer */
.foot { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 3rem; font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.foot h2 { font-size: 1rem; font-weight: 560; margin-block-end: .5rem; }
.foot-risk p { color: var(--ink-2); max-width: 40rem; }
.foot-links { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.copy { color: var(--ink-2); }

/* Narrow screens */
@media (max-width: 960px) {
  .nav { display: none; }
  .top nav { margin-inline-start: auto; }
  .hero-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .safety, .plans { grid-template-columns: repeat(2, 1fr); }
  .faq-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .top-in { gap: .75rem; }
  .brand span { display: none; }
  .lead { font-size: 1.08rem; }
  .steps, .safety, .plans, .foot-in { grid-template-columns: 1fr; }
  .reads-cols { display: none; }
  .reads li { grid-template-columns: 1fr; gap: .6rem; }
  .ticket { margin-inline-start: 0; }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
