/* Traderest website. Measurements follow linear.app (docs/website/RESEARCH.md), the typeface and tokens the
   platform's Geist look. Dark first; light through [data-theme="light"]. Colours only through the tokens below. */

@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/site/fonts/geist-latin-400-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; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/site/fonts/geist-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/site/fonts/geist-latin-500-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; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/site/fonts/geist-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/site/fonts/geist-mono-latin-400-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; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/site/fonts/geist-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* wordmark only (brand book: Funnel Display 600, lowercase) */
@font-face { font-family: 'Funnel Display'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(/site/fonts/funnel-display-latin-600-normal.woff2) format('woff2'); }

:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #08090a;
  --surface: #0f1011;
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --muted: #8a8f98;
  --faint: #62666d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --fill: rgba(255, 255, 255, 0.05);
  --fill-hover: rgba(255, 255, 255, 0.09);
  --nav-bg: rgba(8, 9, 10, 0.72);
  --shot-bg: #000;
  --mint: #19e0a4;
  --mint-hover: #2ff0b4;
  --on-mint: #06281d;
  --check: #19e0a4;
  --focus: #f7f8f8;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f8f8;
  --text: #08090a;
  --text-2: #3c4149;
  --muted: #6b6f76;
  --faint: #8a8f98;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.12);
  --fill: rgba(0, 0, 0, 0.04);
  --fill-hover: rgba(0, 0, 0, 0.07);
  --nav-bg: rgba(255, 255, 255, 0.76);
  --shot-bg: #000;
  --mint: #19e0a4;
  --mint-hover: #2ff0b4;
  --on-mint: #06281d;
  --check: #0c9c70;
  --focus: #08090a;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  padding: 8px 12px; border-radius: 9999px; background: var(--text); color: var(--bg); font-size: 13px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1344px; margin: 0 auto; padding: 0 32px; }

/* --- brand ---------------------------------------------------------------------------------- */
.lockup { display: inline-flex; align-items: center; gap: 0.4em; font-size: 19px; line-height: 1; color: var(--text); }
.lockup .mark { width: 0.86em; height: 0.86em; fill: currentColor; }
.wordmark { font-family: 'Funnel Display', 'Geist', sans-serif; font-weight: 600; letter-spacing: -0.035em; }

/* --- buttons (Linear: pill, 510 weight; Geist: mint primary) ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 9999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--mint); color: var(--on-mint); }
.btn-primary:hover { background: var(--mint-hover); }
.btn-secondary { background: var(--fill); color: var(--text); }
.btn-secondary:hover { background: var(--fill-hover); }
.btn .short { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- nav ------------------------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; height: 72px; gap: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a, .nav-signin {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9999px;
  font-size: 13px; color: var(--muted); transition: color 0.15s ease;
}
.nav-links a:hover, .nav-signin:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 4px; padding-left: 12px; margin-left: 8px; border-left: 1px solid var(--line); }

.lang { display: inline-flex; gap: 2px; font-size: 12px; }
.lang a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border-radius: 9999px;
  color: var(--muted); letter-spacing: 0.02em; transition: color 0.15s ease;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current='page'] { color: var(--text); font-weight: 500; }
.nav .lang { margin-right: 4px; }

/* --- hero ----------------------------------------------------------------------------------- */
.hero { padding-top: 200px; }
.hero h1 {
  max-width: 14em;
  font-size: 64px; line-height: 1.02; font-weight: 500; letter-spacing: -0.032em;
  text-wrap: balance;
}
.hero-lede { max-width: 36em; margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--muted); letter-spacing: -0.01em; }
.hero .shot-bleed { margin-top: 72px; }
.shot-hero { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); border-bottom: 0; border-radius: 12px 12px 0 0; }

/* --- product screenshots -------------------------------------------------------------------- */
.shot-bleed { overflow: hidden; }
.shot {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--shot-bg);
}
.shot img { width: 100%; }

/* --- sections ------------------------------------------------------------------------------- */
.sec { padding: 128px 0; border-top: 1px solid var(--line); }
.hero + .sec { border-top: 0; padding-top: 96px; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: start; }
.eyebrow {
  margin-bottom: 16px;
  font: 400 12px/1.5 'Geist Mono', ui-monospace, monospace; letter-spacing: 0.02em; color: var(--muted);
}
.eyebrow .num { color: var(--faint); margin-right: 6px; }
.sec h2 {
  max-width: 12em;
  font-size: 48px; line-height: 1.04; font-weight: 500; letter-spacing: -0.03em;
  text-wrap: balance;
}
.sec-lede {
  max-width: 30em; padding-top: 34px;
  font-size: 20px; line-height: 1.5; letter-spacing: -0.012em; color: var(--text-2);
}
.sec-lede p + p { margin-top: 16px; }
.sec .shot-bleed { margin-top: 64px; }
.sec .shot-bleed.shot-next { margin-top: 24px; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.points li { padding-left: 16px; border-left: 1px solid var(--line-2); font-size: 14px; line-height: 1.5; color: var(--muted); }

/* prop firms and live: text only until real screenshots exist */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 64px; }
.spec-col { padding-top: 28px; border-top: 1px solid var(--line-2); }
.spec h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 16px; }
.spec dl div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec dt { font: 400 12px/22px 'Geist Mono', ui-monospace, monospace; color: var(--muted); }
.spec dd { font-size: 16px; line-height: 22px; color: var(--text-2); }

/* split: heading column + list column (course, FAQ) */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 64px; align-items: start; }
.split .sec-lede { padding-top: 24px; font-size: 18px; }
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.sec-lede .note { font-size: 14px; }

.lessons { border-top: 1px solid var(--line); counter-reset: none; }
.lessons li {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.lesson-n, .lesson-m { font: 400 13px/1.5 'Geist Mono', ui-monospace, monospace; color: var(--muted); }
.lesson-t { font-size: 16px; line-height: 1.45; color: var(--text); letter-spacing: -0.01em; }
.lesson-m { white-space: nowrap; }

/* pricing: one plan */
.plan {
  display: grid; grid-template-columns: 5fr 7fr; margin-top: 64px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden;
}
.plan-price { padding: 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.plan-price h3 { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: -0.01em; }
.price { margin: 12px 0 32px; color: var(--muted); font-size: 15px; }
.price .amount { display: block; font-size: 48px; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-items { padding: 28px 40px; }
.plan-items li { display: grid; grid-template-columns: 16px 1fr; gap: 14px; padding: 12px 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.plan-items li + li { border-top: 1px solid var(--line); }
.plan-items strong { display: block; font-weight: 500; color: var(--text); }
.plan-items svg { margin-top: 3px; fill: none; stroke: var(--check); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; fill: none; stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover svg { stroke: var(--text); }
.faq details p { max-width: 40em; padding: 0 32px 22px 0; margin-top: -6px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* pre-footer */
.outro { padding: 160px 0 176px; border-top: 1px solid var(--line); text-align: center; }
.outro h2 { font-size: 64px; line-height: 1.02; font-weight: 500; letter-spacing: -0.032em; text-wrap: balance; }
.outro .hero-lede { margin: 20px auto 0; }
.outro .actions { justify-content: center; }

/* --- footer --------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px 32px; }
.foot-grid .lockup { align-self: start; }
.foot h2 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 16px; letter-spacing: -0.005em; }
.foot ul { display: grid; gap: 10px; }
.foot ul a { font-size: 13px; line-height: 20px; color: var(--muted); transition: color 0.15s ease; }
.foot ul a:hover { color: var(--text); }
.foot-base { margin-top: 72px; }
.risk { max-width: 62em; font-size: 12px; line-height: 1.6; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.foot-row a:hover { color: var(--text); }
.foot-controls { display: flex; align-items: center; gap: 16px; }
.theme { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9999px; background: var(--fill); }
.theme button {
  height: 26px; padding: 0 10px; border: 0; border-radius: 9999px; background: transparent;
  font: inherit; font-size: 12px; color: var(--muted); cursor: pointer;
}
.theme button:hover { color: var(--text); }
.theme button[aria-pressed='true'] { background: var(--bg); color: var(--text); font-weight: 500; }

/* --- motion: once, on entering the viewport (Linear-style rise), never under reduced motion ---- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary svg { transition: none; }
}

/* --- responsive ----------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; border-left: 0; padding-left: 0; }
  .sec h2 { font-size: 40px; }
  .hero h1, .outro h2 { font-size: 56px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 24px; }
  .nav-row { height: 64px; }
  html { scroll-padding-top: 76px; }
  .hero { padding-top: 136px; }
  .hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; }
  .hero-lede { font-size: 15px; }
  .hero .shot-bleed, .sec .shot-bleed { margin-top: 48px; }
  .sec .shot-bleed.shot-next { margin-top: 16px; }
  .shot-bleed { padding-right: 0; }
  .shot { width: max(100%, 680px); }
  .shot-hero { border-right: 0; border-radius: 12px 0 0 0; }
  .sec .shot { border-right: 0; border-radius: 12px 0 0 12px; }
  .sec { padding: 80px 0; }
  .hero + .sec { padding-top: 56px; }
  .sec-head, .split { grid-template-columns: 1fr; }
  .sec h2 { font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; }
  .sec-lede { padding-top: 0; font-size: 17px; }
  .split .sec-lede { padding-top: 16px; font-size: 17px; }
  .points { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .spec { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .plan { grid-template-columns: 1fr; margin-top: 40px; }
  .plan-price { padding: 28px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .plan-items { padding: 16px 24px; }
  .price .amount { font-size: 40px; }
  .outro { padding: 104px 0 112px; }
  .outro h2 { font-size: 36px; line-height: 1.1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .lockup { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav-signin { display: none; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
  .hero h1 { font-size: 36px; }
  .actions .btn { flex: 1 1 auto; }
  .lessons li { grid-template-columns: 28px 1fr; }
  .lesson-m { grid-column: 2; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
