:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #131e30;
  --line: #31415a;
  --text: #eff6ff;
  --muted: #acbdd1;
  --green: #6af1b9;
  font: 16px/1.55 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse at 80% 0, #12372f, transparent 42rem), var(--bg); }
.wrap { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); }
.header, .signup-row, .actions { display: flex; align-items: center; gap: .7rem; }
.header { justify-content: space-between; min-height: 70px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none; font-weight: 800; }
a, em { color: var(--green); }
.header label { display: flex; align-items: center; gap: .55rem; }
.intro { padding: clamp(2rem, 6vw, 5rem) 0 2rem; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: clamp(2.55rem, 7vw, 5.1rem); letter-spacing: -.065em; line-height: .98; }
h1 em { font-style: normal; }
.intro p { color: var(--muted); max-width: 43ch; margin-top: 1.2rem; font-size: 1.1rem; }
h2 { font-size: clamp(1.17rem, 2.4vw, 1.65rem); line-height: 1.2; }
h3 { font-size: 1.04rem; }
h2 + p, h3 + p { margin-top: .55rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tools { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1rem; }
button, input, select, .primary { font: inherit; border: 1px solid var(--line); border-radius: .6rem; }
button, select, input { background: #0d1727; color: var(--text); }
button, select, .primary { min-height: 44px; padding: .55rem .76rem; }
button, select, summary { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
button[aria-pressed="true"], .primary { background: var(--green); color: #082318; border-color: var(--green); font-weight: 760; }
.primary { display: inline-flex; align-items: center; text-decoration: none; }
:focus-visible { outline: 2px solid #bdfde1; outline-offset: 3px; }
.dashboard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; }
.card { min-width: 0; padding: clamp(1rem, 2.5vw, 1.65rem); background: var(--panel); border: 1px solid var(--line); border-radius: 1.1rem; }
.field { display: grid; grid-template-columns: 1fr minmax(7rem, 40%); align-items: center; gap: .35rem .6rem; margin-top: .85rem; }
input[type="number"], input[type="email"] { width: 100%; min-width: 0; padding: .6rem; }
input[type="range"] { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--green); cursor: pointer; }
#fx { margin-top: .9rem; }
.results dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.results dl div:first-child { grid-column: 1 / -1; }
dt { color: var(--muted); font-size: .88rem; }
dd { margin: 0; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 700; overflow-wrap: anywhere; }
.results dl div:first-child dd { color: var(--green); font-size: clamp(1.8rem, 4.8vw, 3.3rem); line-height: 1.2; letter-spacing: -.04em; }
.plot { height: 260px; margin-block: 1rem; position: relative; }
details { color: var(--muted); font-size: .88rem; }
.table-wrap { max-height: 16rem; overflow: auto; margin-top: .6rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .45rem; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.opportunities { display: flex; flex-wrap: wrap; align-items: start; gap: 1rem; margin-top: 2rem; }
.opportunities > div:first-child { flex: 1 1 540px; min-width: 0; }
.providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .75rem; margin-top: .8rem; }
.providers .card { padding: 1rem; }
.providers a { display: inline-block; margin-top: .6rem; }
.ad { text-align: center; color: var(--muted); font-size: .75rem; }
.leaderboard { max-width: 728px; margin: 0 auto 1rem; min-height: 90px; }
.sidebar { width: min(100%, 300px); min-height: 250px; }
.feed { margin-top: 1rem; }
.next { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
.price { font-size: 1.3rem; font-weight: 750; margin: .65rem 0; }
.signup-row { margin: .25rem 0 .65rem; }
#signup > label:first-child { display: inline-block; margin-top: .65rem; }
.consent { display: flex; align-items: start; gap: .4rem; font-size: .9rem; margin-bottom: .4rem; }
.consent input { accent-color: var(--green); margin-top: .33em; }
#signup-status { margin-top: .4rem; }
footer { padding-block: 2rem; color: var(--muted); font-size: .88rem; }
dialog { width: min(480px, calc(100% - 2rem)); max-height: 90vh; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; }
dialog::backdrop { background: #050b16cc; }
dialog label { display: block; margin-top: .75rem; }
.close { float: right; min-width: 44px; font-size: 1.15rem; }
.actions { flex-wrap: wrap; margin-top: .8rem; }
#checkout-status { margin-top: .5rem; }
.skip { position: absolute; left: .5rem; top: .5rem; transform: translateY(-160%); background: var(--bg); padding: .5rem; }
.skip:focus { transform: none; }
@media (max-width: 760px) {
  .dashboard { grid-template-columns: 1fr; }
  .plot { height: 220px; }
}

.guide { max-width: 780px; padding-top: clamp(2rem, 6vw, 4.5rem); }
.guide article > * + * { margin-top: 1rem; }
.guide article > h2 { margin-top: 2rem; }
.guide table { table-layout: fixed; }
.guide th, .guide td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.guide th:first-child { width: 33%; }
.guide-index { margin-top: 2rem; }
.guide-index li + li { margin-top: .35rem; }
