/* Front page (landing.html, later index.html). Phone-first: base rules target a 375px screen,
   the min-width blocks at the bottom widen it for tablet and desktop.
   Colours and font match css/app.css. No external fonts, scripts or images. */
:root {
  --bg: #0c0e12; --panel: #12151b; --panel2: #181c24; --line: #222733;
  --text: #e7e9ee; --soft: #c3c9d4; --muted: #8a93a6; --accent: #f5b301;
  --up: #3b9eff; --down: #a855f7; --bad: #ef4f5f;
  --head-h: 56px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #0c0e12; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-gold { background: var(--accent); color: #0c0e12; }
.btn-gold:hover { background: #ffc61a; }
.btn-ghost { background: var(--panel2); border-color: #39404f; color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

/* Header */
.site-head { position: -webkit-sticky; position: sticky; top: 0; z-index: 50; background: rgba(12, 14, 18, .94); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-head { background: rgba(12, 14, 18, .78); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: .2px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand svg { flex: none; display: block; }
.head-actions { display: flex; align-items: center; gap: 4px; }
.head-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--soft); text-decoration: none; white-space: nowrap; }
.head-link:hover { color: var(--accent); }
@media (max-width: 400px) { .head-row { gap: 8px; } .head-link { padding: 0 6px; } }
@media (max-width: 370px) { .site-head .btn-sm { padding: 0 10px; } }
@media (max-width: 340px) { .site-head .brand span { display: none; } }

/* Hero */
.hero { position: relative; padding: 28px 0 8px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    radial-gradient(70% 46% at 85% 0%, rgba(245, 179, 1, .10), transparent 70%),
    radial-gradient(60% 40% at 0% 30%, rgba(59, 158, 255, .07), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero-copy, .shot { min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1 { margin-top: 10px; font-size: 36px; font-size: clamp(34px, 9.6vw, 46px); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.lead { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--soft); max-width: 34em; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; }
.cta-row .btn { flex: 1 1 auto; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 4px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-2px, -2px); }
.link-arrow:hover { color: var(--accent); }

/* Product shot */
.shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 179, 1, .05); }
.shot-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; overflow: hidden; }
.shot-bar svg { flex: none; display: block; }
.shot-sym { display: inline-flex; align-items: baseline; gap: 6px; height: 26px; line-height: 24px; padding: 0 9px; border-radius: 7px; background: var(--panel2); border: 1px solid var(--line); font-weight: 700; }
.shot-sym small { font-size: 9.5px; font-weight: 500; letter-spacing: .6px; color: var(--muted); }
.shot-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 7px; background: var(--panel2); border: 1px solid var(--line); }
.shot-seg span { min-width: 26px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 5px; text-align: center; color: var(--muted); }
.shot-seg .on { background: #2a303d; color: var(--accent); font-weight: 600; }
.hero-chart { display: block; width: 100%; height: auto; font-variant-numeric: tabular-nums; }
.hero-chart text, .mini text { font-family: inherit; }
.shot figcaption { padding: 7px 10px; border-top: 1px solid var(--line); background: var(--panel); font-size: 11.5px; color: var(--muted); }

/* Markets strip */
.markets { position: relative; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.markets-in { display: flex; flex-direction: column; gap: 12px; }
.markets-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.markets-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.markets li { display: flex; flex-direction: column; padding-left: 12px; border-left: 2px solid var(--up); font-weight: 700; line-height: 1.3; }
.markets li:nth-child(odd) { border-left-color: var(--down); }
.markets small { font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* Sections */
.section { padding: 52px 0; }
.section + .section { border-top: 1px solid var(--line); }
h2 { font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.section-lead { margin-top: 10px; color: var(--soft); max-width: 40em; }
h3 { font-size: 18px; line-height: 1.25; font-weight: 700; }

/* Features */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 26px; }
.feature { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature-art { display: flex; align-items: center; justify-content: center; min-height: 188px; padding: 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.feature-body { padding: 16px 16px 20px; }
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feature p { margin-top: 8px; font-size: 15px; color: var(--soft); }
.tag { flex: none; margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: .8px; line-height: 1; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag-pro { color: var(--accent); border-color: rgba(245, 179, 1, .5); }
.tag-free { color: var(--up); border-color: rgba(59, 158, 255, .45); }
.mini { display: block; width: 100%; max-width: 330px; height: auto; font-variant-numeric: tabular-nums; }

/* Small copies of the app's own panels, used as feature pictures */
.mock { width: 100%; max-width: 330px; font-size: 12px; line-height: 1.35; text-align: left; }
.mock-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mock-head b { font-size: 14px; }
.mock-pill { font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 2px 7px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--soft); }
.mock-rules li { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(34, 39, 51, .7); color: var(--soft); }
.mock-rules svg { flex: none; margin-top: 1px; color: var(--up); }
.mock-rules .fail, .mock-rules .fail svg { color: var(--bad); }
.verdict { margin-top: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.verdict-bad { background: rgba(239, 79, 95, .12); color: var(--bad); }
.verdict-ok { background: rgba(59, 158, 255, .12); color: var(--up); }
.mock-setup { padding: 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--up); }
.mock-setup .mock-head { margin-bottom: 0; }
.mock-side { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--up); color: #0c0e12; }
.mock-rr { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--up); font-variant-numeric: tabular-nums; }
.mock-setup .verdict { margin: 9px 0 4px; }
.mock-kv li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(34, 39, 51, .7); color: var(--soft); font-variant-numeric: tabular-nums; }
.mock-kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.mock-kv b { font-weight: 600; color: var(--text); white-space: nowrap; }
.mock-kv .main, .mock-kv .main b { color: #fff; font-weight: 700; }
.mock-foot { margin-top: 7px; font-size: 10.5px; color: var(--muted); }
.mock-menu { padding: 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.mock-menu li { padding: 9px 10px; border-radius: 8px; }
.mock-menu li:first-child { background: var(--panel2); }
.mock-menu b { display: block; font-size: 13px; }
.mock-menu small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }

/* Free vs Pro */
.compare-box { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; }
.compare th, .compare td { padding: 13px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--panel2); }
.compare th:first-child { padding-left: 14px; text-align: left; font-weight: 500; }
.compare thead th:first-child { font-weight: 800; }
.compare td, .compare thead th + th { width: 62px; text-align: center; }
.compare .pro-col { background: rgba(245, 179, 1, .06); }
.compare thead .pro-col { color: var(--accent); background: rgba(245, 179, 1, .12); }
.compare svg { display: inline-block; vertical-align: middle; color: var(--up); }
.compare .pro-col svg { color: var(--accent); }
.dash { display: inline-block; width: 12px; height: 2px; border-radius: 2px; background: #39404f; vertical-align: middle; }

/* Pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 30px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px 18px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.plan-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(245, 179, 1, .10); background: linear-gradient(180deg, rgba(245, 179, 1, .07), rgba(245, 179, 1, 0) 55%), var(--panel); }
.plan-flag { position: absolute; top: -12px; left: 18px; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #0c0e12; font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.plan h3 { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.price { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.amount { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); font-weight: 500; }
.plan-note { margin: 10px 0 18px; font-size: 14.5px; color: var(--soft); }
.plan .btn { margin-top: auto; }
.pricing-foot { margin-top: 20px; font-size: 14.5px; color: var(--soft); }
.pricing-foot a { font-weight: 600; }

/* Community */
.community-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 18px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; }
.community-card img { display: block; height: 24px; width: auto; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)); }
.community-text > * + * { margin-top: 12px; }
.community-card p { color: var(--soft); max-width: 36em; }

/* FAQ */
.faq { margin-top: 18px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 17px 40px 17px 0; font-size: 16.5px; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--accent); transition: transform .15s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 0 18px; color: var(--soft); max-width: 44em; }

/* Footer */
.site-foot { padding: 30px 0 44px; border-top: 1px solid var(--line); background: var(--panel); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; }
.foot-links a { display: inline-block; padding: 8px 0; font-size: 14px; color: var(--soft); text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }
.risk-line { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 44em; }

/* Larger phones and small tablets */
@media (min-width: 480px) {
  .cta-row .btn { flex: 0 0 auto; }
}
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .markets-list { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .feature-art { min-height: 240px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .plan { padding: 26px 22px 22px; }
  .compare th, .compare td { padding: 14px 12px; }
  .compare th:first-child { padding-left: 20px; }
  .compare td, .compare thead th + th { width: 96px; }
  .compare-box { max-width: 860px; }
  .community-card { padding: 32px; }
}
/* Desktop */
@media (min-width: 960px) {
  :root { --head-h: 64px; }
  .wrap { padding: 0 32px; }
  .hero { padding: 64px 0 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
  h1 { font-size: 52px; }
  .lead { margin-top: 18px; font-size: 19px; }
  .cta-row { margin-top: 28px; }
  .markets { margin-top: 56px; padding: 20px 0; }
  .markets-in { flex-direction: row; align-items: center; gap: 36px; }
  .markets-list { flex: 1; gap: 24px; }
  .section { padding: 88px 0; }
  h2 { font-size: 38px; }
  .section-lead { font-size: 17px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
  .community-card { flex-direction: row; align-items: center; gap: 32px; padding: 36px 40px; }
  .community-text { flex: 1; }
  .community-card .btn { flex: none; }
  .faq-wrap { max-width: 860px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::before, .faq summary::after { transition: none; }
}
