/* Search-landing pages (/paper-trading-solana, /axiom-trading-journal,
   /tools/position-size-calculator). Same tokens as tracer.css, but a small
   standalone sheet so these pages stay light and need no app CSS. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-latin.woff2) format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #06100b; --card: #112019; --panel: #0a1510;
  --border: rgba(255,255,255,0.07); --border-strong: rgba(255,255,255,0.14);
  --text: #ffffff; --body: #d9e2dd; --muted: #a9b5ae; --faint: #7d8b83;
  --field: rgba(255,255,255,0.05); --field-border: rgba(255,255,255,0.09);
  --accent: #3dd68c; --accent-ink: #06100b; --red: #f0565c;
  --r-full: 999px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
html {
  background:
    radial-gradient(1500px 900px at 15% -10%, rgba(61,214,140,0.11), transparent 62%),
    radial-gradient(1100px 700px at 100% 0%, rgba(61,214,140,0.07), transparent 58%),
    linear-gradient(160deg, #0a1811 0%, #06100b 55%, #040b07 100%);
  background-attachment: fixed; background-color: var(--bg);
}
body { margin: 0; color: var(--body); font: 15px/1.65 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-full); font-weight: 600; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.top img { height: 22px; width: auto; display: block; }
.top a.back { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.top a.back:hover { color: #fff; }

.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
h1 { color: var(--text); font-size: clamp(30px, 5.4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 10px 0 16px; text-wrap: balance; }
h2 { color: var(--text); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
h3 { color: var(--text); font-size: 15px; letter-spacing: -0.01em; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.lead { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 62ch; }
.hero { padding: 28px 0 8px; }
section { padding: 36px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 22px; border-radius: var(--r-full); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--border-strong); color: #fff; background: var(--field); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms, border-color 160ms; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #55e29f; color: var(--accent-ink); }
.ctaRow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.ctaNote { color: var(--muted); font-size: 13px; }
.ctaNote a { color: var(--muted); }
.ctaNote a:hover { color: #fff; }

/* Cards, steps, lists */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: var(--r-full); display: grid; place-items: center; background: rgba(61,214,140,0.12); color: var(--accent); font-weight: 600; font-size: 13px; }
.steps b { color: var(--text); }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }
.callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; color: var(--body); }
.muted { color: var(--muted); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); margin-top: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .calc { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { color: var(--text); font-size: 13px; font-weight: 600; }
.field .hint { color: var(--faint); font-size: 12px; }
.inputWrap { position: relative; }
.inputWrap input { width: 100%; height: 42px; padding: 0 44px 0 14px; border-radius: var(--r-sm); border: 1px solid var(--field-border); background: var(--field); color: #fff; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.inputWrap input:hover { border-color: var(--border-strong); }
.inputWrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,214,140,0.18); }
.inputWrap .unit { position: absolute; right: 14px; top: 0; height: 42px; display: grid; place-items: center; color: var(--faint); font-size: 12px; pointer-events: none; }
.out { display: grid; gap: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.row:last-child { border-bottom: 0; }
.row span:first-child { color: var(--muted); font-size: 13.5px; }
.row b { color: var(--text); font-weight: 600; }
.row.big { padding-top: 0; }
.row.big b { font-size: 26px; letter-spacing: -0.02em; color: var(--accent); }
.warn { color: var(--red) !important; }
.formula { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; color: var(--body); background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0; overflow-x: auto; }

footer { margin-top: 56px; padding: 26px 0 56px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12.5px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: #fff; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
