/*
 * TERA OPTIONS — homepage. A light, plain page: IBM Plex type (Latin, Arabic and mono for prices), hairline
 * rules, tables for facts, and real screenshots of the platform. Loaded after tokens.css and components.css;
 * everything here is scoped to body.home so the other pages keep their own look.
 * Written with logical properties (inline-start/end), so the Arabic page mirrors without extra rules.
 */
body.home {
  --ink: #0b1b33;
  --text: #33435a;
  --muted: #5d6c82;
  --faint: #8492a6;
  --line: #e2e7ee;
  --line-2: #cfd7e2;
  --bg: #ffffff;
  --soft: #f5f7fa;
  --navy: #0a1a33;
  --navy-2: #112645;
  --brand: #2453d9;
  --brand-2: #1c44b8;
  --c-logo: var(--brand);
  --up: #0b8f6c;
  --down: #cf3341;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body.home { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; line-height: 1.75; }
html:has(body.home) { scroll-behavior: smooth; scroll-padding-top: 88px; }
html.is-leaving:has(body.home) { background: #fff; }
html.nav-locked body.home { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
.home h1, .home h2, .home h3, .home h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.home p { margin: 0; }
.home a { color: var(--brand); }
.home :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.home .muted { color: var(--faint); }
.hm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 6px;
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.home a.hm-btn:hover { text-decoration: none; }
.hm-btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.hm-btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.hm-btn-block { width: 100%; }
.home .hm-btn-primary { background: var(--brand); color: #fff; }
.home .hm-btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.home .hm-btn-white { background: #fff; color: var(--navy); }
@media (hover: hover) {
  .home .hm-btn-primary:hover { background: var(--brand-2); }
  .home .hm-btn-line:hover { border-color: var(--ink); }
  .home .hm-btn-white:hover { background: #e9eef6; }
}
.hm-btn:active { transform: translateY(1px); }

/* ---------- risk bar and header ---------- */
.hm-riskbar { background: var(--navy); color: #b8c4d6; font-size: 13px; text-align: center; padding: 7px 16px; }
.home .hm-riskbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; margin-inline-start: 4px; }
.hm-nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.hm-nav.is-solid, .hm-nav.menu-open { border-bottom-color: var(--line); }
.hm-nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.hm-brand { display: inline-flex; direction: ltr; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none !important; font-family: var(--font-wordmark); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; white-space: nowrap; }
.hm-brand b { font-weight: inherit; color: inherit; }
html[lang="ar"] .hm-brand { letter-spacing: 0.06em !important; } /* the brand name is Latin: keep its spacing */
.hm-links { display: flex; gap: 4px; flex: 1; }
.hm-links a { padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none !important; }
.hm-links a.is-current { color: var(--ink); background: var(--soft); }
@media (hover: hover) { .hm-links a:hover { color: var(--ink); background: var(--soft); } }
.hm-nav-end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.hm-lang { min-height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1; cursor: pointer; }
.hm-lang:empty { display: none; }
.hm-lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
.hm-login { padding: 8px 10px; color: var(--ink) !important; font-weight: 500; font-size: 15px; }
.hm-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--navy); color: #fff !important; font-weight: 600; text-decoration: none !important; }
.hm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hm-burger { display: none; position: relative; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer; padding: 0; }
.hm-burger span { position: absolute; inset-inline: 11px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.hm-burger span:first-child { top: 16px; }
.hm-burger span:last-child { top: 24px; }
.hm-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.hm-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.hm-mobile { position: fixed; inset: 68px 0 0; z-index: 49; overflow-y: auto; padding: 8px 24px 32px; background: #fff; display: flex; flex-direction: column; }
.hm-mobile > a { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; }
.hm-lang-wide { width: 100%; min-height: 46px; margin-top: 20px; }
.hm-mobile-cta { display: grid; gap: 10px; margin-top: 12px; }

/* ---------- hero ---------- */
.hm-hero { background: linear-gradient(180deg, var(--soft), #fff); border-bottom: 1px solid var(--line); padding: 72px 0 0; overflow: hidden; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; }
.hm-hero-copy { padding-bottom: 80px; }
.hm-hero h1 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; max-width: 19ch; }
html[lang="ar"] .hm-hero h1 { line-height: 1.35; max-width: 18ch; }
.hm-lead { margin-top: 22px !important; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 34em; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hm-ticks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.hm-ticks li { position: relative; padding-inline-start: 22px; }
.hm-ticks li::before { content: ''; position: absolute; inset-inline-start: 1px; top: 6px; width: 11px; height: 6px; border-left: 2px solid var(--up); border-bottom: 2px solid var(--up); transform: rotate(-45deg); }
/* the screenshot leans out of the hero's bottom edge, like a window on a desk */
.hm-shot { margin: 0; margin-inline-end: -120px; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid #1c2c45; border-bottom: 0;
  box-shadow: 0 30px 60px -20px rgba(10, 26, 51, 0.35), 0 12px 24px -12px rgba(10, 26, 51, 0.25); background: #07111f; }
.hm-shot img { width: 100%; height: auto; display: block; }

/* ---------- key figures ---------- */
.hm-facts { border-bottom: 1px solid var(--line); background: #fff; }
.hm-facts-row { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; }
.hm-facts-row > div { padding: 28px 24px; border-inline-start: 1px solid var(--line); }
.hm-facts-row > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hm-facts-row dt { font-size: 13px; color: var(--muted); font-weight: 500; }
.hm-facts-row dd { margin: 6px 0 4px; font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.hm-facts-row > div > span { font-size: 13px; color: var(--faint); }

/* ---------- sections ---------- */
.hm-sec { padding: 96px 0; }
.hm-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; margin-bottom: 40px; }
.hm-head h2, .hm-sec h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.015em; }
.hm-head p { color: var(--muted); font-size: 17px; max-width: 40em; }
.hm-sec h3 { font-size: 18px; line-height: 1.35; }
.hm-small { margin-top: 20px !important; font-size: 14px; color: var(--muted); }

/* ---------- tables ---------- */
.hm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.hm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hm-table th, .hm-table td { padding: 12px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hm-table tbody tr:last-child > * { border-bottom: 0; }
.hm-table thead th { font-size: 13px; font-weight: 500; color: var(--muted); background: var(--soft); white-space: nowrap; }
.hm-table .num { text-align: end; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.hm-table thead .num { font-family: inherit; }
.home .up { color: var(--up); }
.home .down { color: var(--down); }

/* markets */
.hm-mk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hm-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hm-tabs::-webkit-scrollbar { display: none; }
.hm-tabs button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--text); font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap; }
.hm-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hm-mk-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.hm-dot.ok { background: var(--up); box-shadow: 0 0 0 3px rgba(11, 143, 108, 0.15); }
.hm-mk-table td:first-child { min-width: 220px; }
.hm-mkt { display: flex; align-items: center; gap: 12px; }
.hm-mkt > :first-child { flex: none; }
.hm-mkt b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.hm-mkt small { display: block; color: var(--faint); font-size: 13px; }
.hm-src { display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1px; }
.hm-src.otc { color: #8a5a00; background: #fff4dc; }
.hm-src.live { color: #0b6b52; background: #e3f6ef; }
.hm-mk-table canvas { width: 120px; height: 32px; display: block; }
.hm-state { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.hm-state.open::before, .hm-state.shut::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.hm-state.shut::before { background: var(--faint); }
.hm-mk-table tr.closed .num:not(:last-child) { color: var(--faint); }
.hm-mk-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--faint); }
.hm-mk-foot .hm-btn { order: 2; }

/* how a trade works */
.hm-how { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.hm-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.hm-steps li { counter-increment: s; position: relative; padding: 24px 0 24px 64px; padding-inline: 64px 0; border-top: 1px solid var(--line-2); }
.hm-steps li:last-child { border-bottom: 1px solid var(--line-2); }
.hm-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 24px; font-family: var(--mono); font-size: 15px; color: var(--brand); }
.hm-steps p { margin-top: 6px !important; color: var(--muted); }
.hm-example { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.hm-example h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
html[lang="ar"] .hm-example h3 { text-transform: none; font-size: 15px; }
.hm-example-sub { margin-top: 6px !important; font-size: 17px; color: var(--ink); font-weight: 500; }
.hm-ex-table { margin-top: 16px; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.hm-ex-table th, .hm-ex-table td { padding: 11px 14px; }
.hm-example-note { margin-top: 16px !important; font-size: 14px; color: var(--muted); }

/* the platform (dark band) */
.hm-dark { background: var(--navy); color: #b9c5d8; }
.hm-dark h2, .hm-dark h3 { color: #fff; }
.hm-dark .hm-head p { color: #9fb0c8; }
.hm-features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hm-features > div { padding: 28px 28px 28px 0; padding-inline: 0 28px; }
.hm-features > div + div { padding-inline-start: 28px; border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.hm-features p { margin-top: 10px !important; font-size: 15px; color: #a9b8cd; }
.hm-phone-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: center; margin-top: 56px; padding-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hm-phone { margin: 0; border-radius: 36px; overflow: hidden; border: 8px solid #1d3254; background: #07111f; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6); }
.hm-phone img { width: 100%; height: auto; display: block; }
.hm-phone-copy { max-width: 32em; }
.hm-phone-copy h3 { font-size: 24px; }
.hm-phone-copy p { margin-top: 14px !important; font-size: 17px; color: #a9b8cd; }
.hm-phone-copy .hm-btn { margin-top: 28px; }

/* conditions */
.hm-cond th[scope="row"] { width: 22%; color: var(--ink); font-weight: 600; font-size: 15px; background: #fff; }
.hm-cond thead th { font-size: 14px; color: var(--ink); font-weight: 600; }
.hm-cond td { color: var(--text); }
.hm-cl { display: none; }
/* figures (prices, amounts, percentages) keep their left-to-right order inside Arabic sentences */
html[dir="rtl"] .home [data-fact], html[dir="rtl"] .home [data-cond="minDeposit"] { direction: ltr; unicode-bidi: isolate; }

/* verified prices */
.hm-prices { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.hm-prices-lead { margin-top: 16px !important; font-size: 17px; color: var(--muted); max-width: 38em; }
.hm-numlist { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 16px; }
.hm-numlist li { counter-increment: n; position: relative; padding-inline-start: 40px; color: var(--text); }
.hm-numlist li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; }
.hm-numlist b { color: var(--ink); font-weight: 600; }
.hm-lock { background: var(--navy); color: #c6d2e3; border-radius: 10px; padding: 24px; }
.hm-lock-k { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9fb0c8; }
.hm-lock-k + code, .hm-lock code { display: block; margin: 8px 0 4px; padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: #fff; font: 500 13px/1.5 var(--mono); word-break: break-all; direction: ltr; text-align: left; }
.hm-lock code.dim { color: #8ea0ba; }
.hm-lock-sub { font-size: 13px; color: #8ea0ba; margin-bottom: 18px !important; }
.hm-lock .hm-btn { margin-top: 18px; }

/* money */
.hm-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.hm-cols3 > div { padding: 28px 32px 0 0; padding-inline: 0 32px; }
.hm-cols3 > div + div { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
.hm-cols3 p { margin-top: 10px !important; color: var(--muted); }

/* questions */
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.hm-faq-side { margin-top: 16px !important; color: var(--muted); }
.hm-faq details { border-bottom: 1px solid var(--line-2); }
.hm-faq details:first-child { border-top: 1px solid var(--line-2); }
.hm-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; color: var(--ink); font-size: 17px; font-weight: 500; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.hm-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.hm-faq details p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

/* closing band */
.hm-close { background: var(--brand); color: #dce6ff; padding: 56px 0; }
.hm-close-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hm-close h2 { color: #fff; font-size: clamp(24px, 2.6vw, 30px); }
.hm-close p { margin-top: 8px !important; font-size: 17px; }
.hm-close .hm-cta { margin-top: 0; }

/* footer */
.hm-footer { background: var(--navy); color: #93a4bd; padding: 64px 0 40px; font-size: 14px; }
.hm-footer .hm-brand { color: #fff !important; }
.hm-footer .hm-brand { --c-logo: #3d6bf0; }
.hm-footer a { color: #c6d2e3; }
.hm-footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hm-footer-brand p { margin-top: 16px !important; line-height: 1.7; }
.hm-social { display: flex; gap: 10px; margin-top: 20px; }
.hm-footer .hm-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; color: #c6d2e3; }
.hm-social svg { width: 17px; height: 17px; }
@media (hover: hover) { .hm-footer .hm-social a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); } }
.hm-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hm-footer-cols h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.hm-footer-cols a { display: block; padding: 4px 0; text-decoration: none; }
@media (hover: hover) { .hm-footer-cols a:hover { color: #fff; } }
.hm-footer-risk { padding-top: 28px; display: grid; gap: 14px; font-size: 13px; line-height: 1.7; color: #7f91ab; }
.hm-footer-risk b { color: #c6d2e3; }

/* ---------- inner pages: title block (breadcrumb, h1, intro) ---------- */
.hm-top { background: linear-gradient(180deg, var(--soft), #fff); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.hm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.home .hm-crumbs a { color: var(--muted); text-decoration: none; }
.hm-crumbs [aria-current] { color: var(--ink); }
@media (hover: hover) { .home .hm-crumbs a:hover { color: var(--ink); text-decoration: underline; } }
.hm-top h1 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.02em; }
.hm-top-lead { margin-top: 14px !important; font-size: 18px; color: var(--text); max-width: 40em; }
@media (max-width: 640px) {
  .hm-top { padding: 24px 0 32px; }
  .hm-crumbs { margin-bottom: 14px; font-size: 13px; }
  .hm-top-lead { font-size: 16px; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .hm-links a { padding: 8px 9px; font-size: 14px; }
  .hm-nav-inner { gap: 20px; }
  .hm-shot { margin-inline-end: -24px; }
}
@media (max-width: 1023px) {
  .hm-links, .hm-login, .hm-nav-end > .hm-lang { display: none; }
  .hm-burger { display: block; }
  .hm-hero { padding-top: 48px; }
  .hm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hm-hero-copy { padding-bottom: 0; }
  .hm-hero h1 { max-width: 20ch; }
  .hm-shot { margin-inline: 0; }
  .hm-facts-row { grid-template-columns: repeat(3, 1fr); }
  .hm-facts-row > div:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .hm-facts-row > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .hm-head, .hm-how, .hm-prices, .hm-faq-grid, .hm-footer-top { grid-template-columns: 1fr; gap: 24px; }
  .hm-head { margin-bottom: 32px; }
  .hm-how, .hm-prices, .hm-faq-grid { gap: 40px; }
  .hm-features { grid-template-columns: 1fr 1fr; }
  .hm-features > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .hm-features > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .hm-phone-row { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .hm-cols3 { grid-template-columns: 1fr; }
  .hm-cols3 > div, .hm-cols3 > div + div { padding: 24px 0; border-inline-start: 0; }
  .hm-cols3 > div + div { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hm-wrap { padding: 0 16px; }
  .hm-riskbar { font-size: 12px; }
  .hm-nav-inner { height: 60px; gap: 12px; }
  .hm-mobile { inset-block-start: 60px; padding-inline: 16px; }
  .hm-nav-end > .hm-btn { display: none; }
  .hm-brand { font-size: 14px; }
  .hm-hero { padding-top: 36px; }
  .hm-lead { font-size: 17px; }
  .hm-cta .hm-btn { width: 100%; }
  .hm-shot { border-radius: 8px 8px 0 0; }
  .hm-facts-row { grid-template-columns: 1fr 1fr; }
  .hm-facts-row > div, .hm-facts-row > div:first-child { padding: 18px 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .hm-facts-row > div:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
  .hm-facts-row > div:nth-child(-n + 2) { border-top: 0; }
  .hm-facts-row dd { font-size: 22px; }
  .hm-facts-row > div:last-child:nth-child(odd) { grid-column: 1 / -1; padding-inline-start: 0; border-inline-start: 0; }
  .hm-sec { padding: 64px 0; }
  .hm-head p { font-size: 16px; }
  .hide-sm { display: none; }
  .hm-table th, .hm-table td { padding: 12px 12px; }
  .hm-mk-table td:first-child { min-width: 0; }
  .hm-mkt { gap: 10px; }
  .hm-mkt small, .hm-mkt > :first-child { display: none; }
  .hm-mkt b { white-space: nowrap; font-size: 14px; }
  .hm-table { font-size: 14px; }
  .hm-steps li { padding-inline-start: 48px; }
  .hm-features { grid-template-columns: 1fr; }
  .hm-features > div, .hm-features > div + div { padding: 22px 0; border-inline-start: 0; }
  .hm-features > div + div { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .hm-phone-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 32px; }
  .hm-phone { width: 240px; border-width: 6px; border-radius: 30px; }
  /* conditions: one block per row, each cell labelled */
  .hm-cond thead { display: none; }
  .hm-cond tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .hm-cond tbody tr:last-child { border-bottom: 0; }
  .hm-cond th[scope="row"], .hm-cond td { display: block; width: auto; padding: 0; border: 0; font-size: 14px; }
  .hm-cond th[scope="row"] { font-size: 15px; margin-bottom: 6px; }
  .hm-cond td + td { margin-top: 6px; }
  .hm-cl { display: block; font-size: 12px; color: var(--faint); font-weight: 500; }
  .hm-faq summary { font-size: 16px; }
  .hm-footer-cols { grid-template-columns: 1fr 1fr; }
  .hm-close .hm-cta, .hm-close .hm-btn { width: 100%; }
}
.hm-mk-table tbody tr.extra { display: none; }
.hm-mk-table.all tbody tr.extra { display: table-row; }
@media (prefers-reduced-motion: reduce) { html:has(body.home) { scroll-behavior: auto; } }

/* ---------- welcome rewards band: the bonus calculator and the hand of reward cards (the game look: css/game.css) ---------- */
.hb { position: relative; overflow: hidden; isolation: isolate; padding: 92px 0 100px; background: var(--gm-bg); color: var(--gm-text); }
.hb::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 70% at 18% 30%, rgba(246, 185, 59, 0.16), transparent 70%), radial-gradient(55% 70% at 80% 45%, rgba(91, 143, 255, 0.2), transparent 70%), radial-gradient(40% 50% at 95% 95%, rgba(176, 124, 255, 0.18), transparent 70%); }
.hb-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.home .hb h2 { color: #fff; font-family: var(--gm-font); font-size: clamp(36px, 4.2vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
html[lang="ar"] .home .hb h2 { text-transform: none; line-height: 1.3; }
.hb h2 bdi, .hb-sum b, .hb-calc output { direction: ltr; unicode-bidi: isolate; }
.hb-lead { margin-top: 18px !important; font-size: 17px; color: var(--gm-text); max-width: 34em; }
.hb-lead b { color: #fff; }
.hb-calc { margin-top: 28px; padding: 18px 20px 20px; border: 1px solid rgba(246, 185, 59, 0.38); border-radius: 14px; background: rgba(12, 23, 48, 0.82);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), inset 0 0 40px -18px rgba(246, 185, 59, 0.45); max-width: 520px; }
.hb-calc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hb-calc label { color: var(--gm-dim); font-size: 14px; font-weight: 600; }
.hb-calc output { font-family: var(--gm-font); font-size: 28px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
/* the slider: a gold track filled up to the value (set as --p by js/landing.js) */
.hb-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; margin: 14px 0 16px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, #f0a91c, #ffd56a var(--p, 50%), rgba(255, 255, 255, 0.12) var(--p, 50%)); }
html[dir="rtl"] .hb-range { background: linear-gradient(to left, #f0a91c, #ffd56a var(--p, 50%), rgba(255, 255, 255, 0.12) var(--p, 50%)); }
.hb-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 35% 30%, #fff1c2, #f6b93b 60%, #b9791a); box-shadow: 0 0 0 6px rgba(246, 185, 59, 0.25), 0 4px 14px rgba(0, 0, 0, 0.5); }
.hb-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 35% 30%, #fff1c2, #f6b93b 60%, #b9791a); box-shadow: 0 0 0 6px rgba(246, 185, 59, 0.25), 0 4px 14px rgba(0, 0, 0, 0.5); }
.hb-range:focus-visible { outline: 2px solid #ffd56a; outline-offset: 6px; }
.hb-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.hb-stack span { width: var(--w, 50%); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.hb-stack .c { background: linear-gradient(90deg, #3a6cf0, #5b8fff); }
.hb-stack .b { background: linear-gradient(90deg, #f0a91c, #ffd56a); box-shadow: 0 0 18px rgba(246, 185, 59, 0.8); }
.hb-sum { display: flex; align-items: flex-end; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hb-sum > div { display: flex; flex-direction: column; min-width: 0; }
.hb-sum small { color: var(--gm-dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
html[lang="ar"] .hb-sum small { text-transform: none; letter-spacing: 0; }
.hb-sum b { font-family: var(--gm-font); font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hb-bonus b { color: #ffd56a; text-shadow: 0 0 18px rgba(246, 185, 59, 0.65); }
.hb-total b { font-size: 34px; background: linear-gradient(90deg, #ffd56a, #f6b93b 40%, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-op { color: var(--gm-dim); font-family: var(--gm-font); font-size: 24px; line-height: 1.5; }
.hb-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hb-claim { min-height: 56px; padding: 0 30px; font-size: 17px; animation: hbGlow 2.6s ease-in-out infinite; }
@keyframes hbGlow { 0%, 100% { box-shadow: 0 6px 0 #a96d05, 0 10px 24px -6px rgba(246, 185, 59, 0.6); } 50% { box-shadow: 0 6px 0 #a96d05, 0 12px 44px 2px rgba(246, 185, 59, 0.85); } }
.hb-fine { margin-top: 18px !important; font-size: 13px; line-height: 1.6; color: var(--gm-dim); max-width: 42em; }
.home .hb-fine a { color: #ffd56a; }
.hb-hand { height: 430px; }
.home .hb h3 { color: #fff; }
/* a tighter fan than on /offers, so the hand fits its column */
.hb-hand .gm-card { width: 168px; height: 260px; }
.hb-hand .gm-card:nth-child(1), html[dir="rtl"] .hb-hand .gm-card:nth-child(4) { --dx: -204px; }
.hb-hand .gm-card:nth-child(2), html[dir="rtl"] .hb-hand .gm-card:nth-child(3) { --dx: -68px; }
.hb-hand .gm-card:nth-child(3), html[dir="rtl"] .hb-hand .gm-card:nth-child(2) { --dx: 68px; }
.hb-hand .gm-card:nth-child(4), html[dir="rtl"] .hb-hand .gm-card:nth-child(1) { --dx: 204px; }
/* in the hero: a small gold pill pointing to the band */
.home a.hb-ribbon { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 18px; padding-block: 5px; padding-inline: 5px 12px; border: 1px solid #f1d58f; border-radius: 999px;
  background: #fff7e0; color: #5b4a2a; font-size: 14px; line-height: 1.35; text-decoration: none; }
.hb-ribbon-tag { flex: none; padding: 3px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffd56a, #f0a91c); color: #2a1a00; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
html[lang="ar"] .hb-ribbon-tag { letter-spacing: 0; }
.hb-ribbon b { color: #8a5a00; font-weight: 700; }
.hb-ribbon svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .hb-ribbon svg { transform: scaleX(-1); }
@media (hover: hover) { .home a.hb-ribbon:hover { border-color: #e2b54a; background: #fff1cc; } }
.home .hm-links a.hm-link-gold, .home .hm-mobile a.hm-link-gold { color: #a86a06; font-weight: 600; }
@media (min-width: 1024px) and (max-width: 1180px) { .hb-hand { transform: scale(0.86); } }
@media (max-width: 1023px) {
  .hb { padding: 72px 0 80px; }
  .hb-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hb-calc { max-width: none; }
  .hb-hand { height: 360px; }
}
@media (max-width: 640px) {
  .hb { padding: 56px 0 48px; }
  .hb-lead { font-size: 16px; }
  .hb-calc { padding: 16px; }
  .hb-sum { gap: 8px; }
  .hb-sum b { font-size: 19px; }
  .hb-total b { font-size: 26px; }
  .hb-op { font-size: 19px; }
  .hb-cta .gm-btn { flex: 1 1 100%; }
  .hb-hand { height: auto; }
  .hb-hand .gm-card:nth-child(n), html[dir="rtl"] .hb-hand .gm-card:nth-child(n) { --dx: 0px; width: 200px; height: 284px; }
}
@media (prefers-reduced-motion: reduce) { .hb-claim { animation: none; } .hb-stack span { transition: none; } }
