/* Swiss Profit — design tokens and components.
   Swiss International Style: one grotesk family, flush-left grid, colour only where it means something. */
:root {
  --snow: #fbfcfd;
  --paper: #ffffff;
  --mist: #eef2f6;
  --line: #dde3ea;
  --ink: #13202f;
  --ink-2: #4b5868;
  --ink-3: #7d8896;
  --swiss: #d52b1e;      /* brand mark only */
  --long: #17795a;       /* buy, profit */
  --long-bg: #e6f3ee;
  --short: #b8322a;      /* sell, stop */
  --short-bg: #f8e9e7;
  --target: #2a5f93;     /* targets */
  --target-bg: #e7eff8;
  --gold: #a87a1f;       /* stop moved to entry */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --w: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--snow);
  font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--target); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--w), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Type scale (1.25) */
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; font-weight: 650; }
h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -0.03em; }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 252, 253, 0.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand .mark { width: 26px; height: 26px; }
.brand small { font-weight: 500; color: var(--ink-3); font-size: 13px; letter-spacing: 0; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-s); padding: 6px 8px; font-size: 14px; cursor: pointer; }
@media (max-width: 760px) { .nav .hide-m { display: none; } .top .wrap { gap: 12px; } .nav { gap: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff; padding: 15px 24px; border-radius: var(--radius-m); font-weight: 600; font-size: 16px; transition: transform .12s, background .2s; }
.btn:hover { background: #22344a; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--mist); }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: var(--radius-s); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--target); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 40px; } }

/* The trade ladder — the signature element (hero demo + dashboard) */
.ladder-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.ladder-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.ladder-head strong { font-size: 19px; letter-spacing: -0.01em; }
.ladder { position: relative; height: 300px; margin-left: 4px; }
.ladder .rail { position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--mist); border-radius: 2px; }
.ladder .fill { position: absolute; left: 14px; width: 2px; background: var(--long); border-radius: 2px; transition: top .9s ease, height .9s ease; }
.ladder .lvl { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 14px; transform: translateY(-50%); transition: top .9s ease; }
.ladder .dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.ladder .lvl .txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ladder .lvl .txt b { font-size: 15px; font-weight: 600; }
.ladder .lvl .txt span { font-size: 13px; color: var(--ink-3); }
.ladder .lvl .px { margin-left: auto; font-weight: 600; font-size: 15px; }
.lvl.t2 .dot, .lvl.t1 .dot { background: var(--target); }
.lvl.en .dot { background: var(--ink); }
.lvl.sl .dot { background: var(--short); }
.lvl.sl.moved .dot { background: var(--gold); }
.lvl.hit .dot { box-shadow: 0 0 0 5px var(--target-bg); }
.ladder .now { position: absolute; left: 6px; width: 20px; height: 0; transition: top .9s ease; }
.ladder .now i { position: absolute; left: 2px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--long); box-shadow: 0 0 0 4px rgba(23, 121, 90, .18); }
.ladder .now em { position: absolute; right: 0; top: -22px; font-style: normal; font-size: 12px; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 99px; }
.ladder-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); min-height: 52px; }
.ladder-foot b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .ladder .lvl, .ladder .now, .ladder .fill { transition: none; } }

/* Sections */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head .lead { justify-self: start; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 16px; } section.block { padding: 64px 0; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.steps li { list-style: none; padding: 0 28px 0 0; border-left: 1px solid var(--line); padding-left: 20px; }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li::before { counter-increment: step; content: counter(step); display: block; font-size: 44px; font-weight: 300; letter-spacing: -0.04em; color: var(--ink-3); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 16px; }
ol.steps { margin: 0; padding: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .steps li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { border-left: 0; padding-left: 0; } }

.signals-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.signals-legend > div { background: var(--paper); padding: 28px; }
.signals-legend .sw { width: 34px; height: 6px; border-radius: 3px; margin-bottom: 18px; }
.signals-legend h3 { margin-bottom: 8px; }
.signals-legend p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .signals-legend { grid-template-columns: 1fr; } }

.markets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.markets span { border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-size: 15px; background: var(--paper); }

/* Pricing */
.billing { display: inline-flex; background: var(--mist); border-radius: 99px; padding: 4px; margin-bottom: 32px; }
.billing button { border: 0; background: none; padding: 10px 20px; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.billing button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(19, 32, 47, .12); }
.billing .save { color: var(--long); font-weight: 600; margin-left: 4px; }
.price-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.price-main { padding: 40px; border-right: 1px solid var(--line); }
.price-main .plan { font-weight: 600; color: var(--ink-2); }
.price-amount { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; }
.price-amount .cur { font-size: 20px; font-weight: 600; color: var(--ink-2); }
.price-amount .num { font-size: clamp(56px, 7vw, 80px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.price-amount .per { color: var(--ink-3); }
.price-sub { min-height: 50px; color: var(--ink-2); }
.price-sub .badge { display: inline-block; background: var(--long-bg); color: var(--long); font-weight: 600; font-size: 14px; padding: 3px 10px; border-radius: 99px; margin-right: 6px; }
.price-main .btn { margin-top: 28px; }
.price-main .fine { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.price-list { padding: 40px; margin: 0; list-style: none; display: grid; gap: 14px; align-content: start; }
.price-list li { display: flex; gap: 12px; color: var(--ink-2); }
.price-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--long-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2317795a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 860px) { .price-card { grid-template-columns: 1fr; } .price-main { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; } .price-list { padding: 28px; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-2); max-width: 64ch; }

/* Footer */
footer.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--ink-3); }
footer.foot .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
footer.foot p + p { margin-top: 10px; }
footer.foot a { color: var(--ink-2); }
@media (max-width: 760px) { footer.foot .wrap { grid-template-columns: 1fr; } }

/* Forms / auth pages */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 20px; }
.auth-box { width: min(440px, 100%); }
.auth-box h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }
.auth-box .lead { font-size: 17px; margin-bottom: 28px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-m); padding: 14px 16px; font-size: 16px; }
.field input:focus { outline: none; border-color: var(--target); box-shadow: 0 0 0 3px var(--target-bg); }
.msg { border-radius: var(--radius-m); padding: 12px 16px; font-size: 15px; margin-bottom: 16px; }
.msg.err { background: var(--short-bg); color: var(--short); }
.msg.ok { background: var(--long-bg); color: var(--long); }
.auth-links { margin-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.auth-links a { color: var(--target); }

/* Dashboard */
.dash { padding: 32px 0 72px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(30px, 4vw, 44px); }
.dash-head .sub { color: var(--ink-2); margin-top: 6px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
.panel .hint { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }

.trade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.trade:first-of-type { border-top: 0; padding-top: 4px; }
@media (max-width: 760px) { .trade { grid-template-columns: 1fr; gap: 18px; } }
.trade-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.trade-title strong { font-size: 22px; letter-spacing: -0.02em; }
.side { font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.side.long { background: var(--long-bg); color: var(--long); }
.side.short { background: var(--short-bg); color: var(--short); }
.strength { display: inline-flex; gap: 3px; align-items: center; font-size: 13px; color: var(--ink-3); }
.strength i { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); }
.strength i.on { background: var(--ink); }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.todo li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--ink-2); }
.todo li .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1.5px solid var(--line); color: var(--ink-3); background: var(--paper); }
.todo li.done .ic { background: var(--long); border-color: var(--long); color: #fff; }
.todo li.now .ic { border-color: var(--ink); color: var(--ink); }
.todo li b { color: var(--ink); font-weight: 600; }
.trade-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pnl { font-weight: 700; }
.pnl.up { color: var(--long); }
.pnl.down { color: var(--short); }

.mini-ladder { background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; }
.mini-ladder .ladder { height: 240px; }

.empty { text-align: left; padding: 28px 0 8px; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 48ch; }

.watch { width: 100%; border-collapse: collapse; font-size: 15px; }
.watch td, .watch th { text-align: left; padding: 12px 8px; border-top: 1px solid var(--line); }
.watch th { font-weight: 600; color: var(--ink-3); font-size: 13px; border-top: 0; }
.watch td.r, .watch th.r { text-align: right; }
.trend { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.trend.up { color: var(--long); }
.trend.down { color: var(--short); }
.trend.flat { color: var(--ink-3); }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.kpis div { background: var(--paper); padding: 16px; }
.kpis b { display: block; font-size: 26px; letter-spacing: -0.03em; font-weight: 650; }
.kpis span { font-size: 13px; color: var(--ink-3); }

.guide { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: g; }
.guide li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.guide li::before { counter-increment: g; content: counter(g); width: 24px; height: 24px; border-radius: 50%; background: var(--mist); color: var(--ink); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.guide b { color: var(--ink); }

.account-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.account-row:first-of-type { border-top: 0; }
.account-row span { color: var(--ink-3); }

.banner { border-radius: var(--radius-m); padding: 14px 18px; font-size: 15px; margin-bottom: 20px; background: var(--target-bg); color: var(--target); }
.banner.warn { background: var(--short-bg); color: var(--short); }

/* Chart modal */
.modal { position: fixed; inset: 0; background: rgba(19, 32, 47, .55); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal-box { background: var(--paper); border-radius: var(--radius-l); width: min(1000px, 100%); height: min(640px, 90vh); display: flex; flex-direction: column; overflow: hidden; }
.modal-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.modal-bar strong { font-size: 17px; }
#chart-holder { flex: 1; }
.modal-note { padding: 10px 20px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }

table.history { width: 100%; border-collapse: collapse; font-size: 15px; }
table.history th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 600; padding: 10px 8px; }
table.history td { padding: 12px 8px; border-top: 1px solid var(--line); }
table.history td.r, table.history th.r { text-align: right; }
.scroll-x { overflow-x: auto; }

.legal { max-width: 760px; padding: 56px 0 80px; }
.legal h1 { font-size: 40px; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p { color: var(--ink-2); margin-bottom: 12px; }

/* Checkout consent */
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-top: 24px; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.price-main .consent + .btn { margin-top: 16px; }
.price-main .fine a { color: var(--target); }

/* Free preview */
.pv-banner { position: sticky; top: 68px; z-index: 15; background: var(--ink); color: #fff; }
.pv-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 15px; }
.pv-banner .btn { background: #fff; color: var(--ink); }
.pv-banner .btn:hover { background: var(--mist); }
@media (max-width: 640px) { .pv-banner .wrap { flex-direction: column; align-items: flex-start; gap: 10px; } .pv-banner { top: 0; position: relative; } }
.locked-ladder { position: relative; }
.locked-ladder .ladder { filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; }
.locked-ladder .lock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.locked-ladder .lock div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 20px; max-width: 260px; font-size: 15px; font-weight: 600; box-shadow: 0 6px 24px rgba(19, 32, 47, .08); }
.locked-ladder .lock svg { margin: 0 auto 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 7px 12px 7px 10px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; cursor: default; }
.chip:not(.on):hover { background: var(--mist); }
.pv-cta { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 32px; }
.pv-cta h2 { font-size: 28px; margin-bottom: 10px; }
.pv-cta p { color: #c9d2dc; margin-bottom: 22px; max-width: 46ch; }
.pv-cta .btn { background: #fff; color: var(--ink); }
.gate { max-width: 520px; }

.price-main #buy-err { margin-top: 12px; margin-bottom: 0; }

/* Member guide */
.guide-article { max-width: 760px; padding: 48px 0 96px; }
.guide-article h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 16px; }
.guide-article h2 { font-size: 28px; margin: 56px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.guide-article h3 { font-size: 19px; margin: 28px 0 8px; }
.guide-article p, .guide-article li { color: var(--ink-2); }
.guide-article p + p { margin-top: 12px; }
.guide-article ul, .guide-article ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.guide-article b { color: var(--ink); }
.guide-article a { color: var(--target); }
.guide-article table.history td:first-child { width: 38%; color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.toc a { text-decoration: none; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 7px 14px; font-size: 14px; color: var(--ink-2) !important; }
.toc a:hover { background: var(--mist); }
.formula { background: var(--target-bg); color: var(--target); border-radius: var(--radius-m); padding: 16px 18px; margin: 16px 0; }
.formula b { color: var(--target); }
.note { background: var(--mist); border-radius: var(--radius-m); padding: 14px 18px; margin-top: 16px; }
