:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --text: #15201b;
  --muted: #5d6762;
  --border: #e3e1d8;
  --brand: #0f3d2e;
  --brand-2: #17573f;
  --lime: #b6f09c;
  --accent: #1d7a52;
  --neg: #c0362c;
  --track: #eceae2;
  --shadow: 0 1px 2px rgba(16, 32, 24, 0.05), 0 8px 24px rgba(16, 32, 24, 0.06);
  --ebay: #3665f3;
  --poshmark: #a41e48;
  --mercari: #5356ee;
  --depop: #e23b2e;
  --etsy: #f1641e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412;
    --surface: #161e1b;
    --text: #e8eee9;
    --muted: #9aa6a0;
    --border: #26302c;
    --accent: #6fd39f;
    --neg: #ff8a80;
    --track: #222c28;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --ebay: #7d9bff;
    --poshmark: #e0688e;
    --mercari: #9a9cff;
    --depop: #ff7b70;
    --etsy: #ff9a5c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1, h2, .logo, .hero-number { font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header and hero */
.top {
  background: radial-gradient(1200px 400px at 85% -10%, #2c7a57 0%, transparent 60%), var(--brand);
  color: #eaf5ee;
  padding-bottom: 96px;
}
header.site { padding: 18px 0; }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; color: inherit; text-decoration: none; letter-spacing: -0.02em; }
.logo b { color: var(--lime); }
.logo .mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--lime); color: var(--brand); font-size: 18px;
}
.nav-cta { color: var(--brand); background: var(--lime); padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.hero { padding-top: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; color: var(--lime); margin: 0 0 8px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 14px; max-width: 14ch; color: #fff; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: #c6dccf; max-width: 46ch; margin: 0 0 18px; }
.trust { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: #c6dccf; }
.trust li::before { content: "✓"; color: var(--lime); font-weight: 800; margin-right: 6px; }
nav.platforms { display: flex; gap: 8px; flex-wrap: wrap; }
nav.platforms a {
  color: #eaf5ee; text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 99px;
}
nav.platforms a:hover, nav.platforms a[aria-current] { background: rgba(255, 255, 255, 0.12); border-color: var(--lime); }

/* App layout */
.app { display: grid; gap: 16px; margin-top: -72px; align-items: start; }
@media (min-width: 860px) {
  .app { grid-template-columns: 1fr 1.1fr; }
  .results { position: sticky; top: 16px; }
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.group { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 18px 0 10px; font-family: Inter, system-ui, sans-serif; font-weight: 700; }
.inputs .examples + .group { margin-top: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
label { display: block; font-size: 14px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.money, .pct { position: relative; display: block; margin-top: 6px; }
.money::before, .pct::after { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money::before { content: "$"; left: 12px; }
.pct::after { content: "%"; right: 12px; }
.money input { padding-left: 26px; }
.pct input { padding-right: 28px; }
input, textarea {
  display: block; width: 100%; padding: 12px; font: inherit; font-weight: 600; font-size: 17px;
  color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { font-weight: 400; font-size: 15px; margin-top: 6px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.chip {
  font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Hero result */
.hero-result {
  --pc: var(--accent);
  border-radius: 18px; padding: 22px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-result::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: var(--pc); opacity: 0.35; filter: blur(8px);
}
.hero-label { font-weight: 600; color: #c6dccf; position: relative; }
.hero-number { font-size: clamp(48px, 9vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 6px 0; color: var(--lime); position: relative; font-variant-numeric: tabular-nums; }
.hero-number.neg { color: #ffb4ab; }
.hero-sub { color: #c6dccf; min-height: 1.5em; position: relative; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; position: relative; }
.hero-stats div { background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 10px; }
.hero-stats span { display: block; font-size: 12px; color: #c6dccf; }
.hero-stats strong { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Platform colors */
.p-ebay { --pc: var(--ebay); }
.p-poshmark { --pc: var(--poshmark); }
.p-mercari { --pc: var(--mercari); }
.p-depop { --pc: var(--depop); }
.p-etsy { --pc: var(--etsy); }

/* Ranked list */
.results-list { list-style: none; margin: 0; padding: 0; }
.row { border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row summary {
  list-style: none; cursor: pointer; padding: 12px 4px;
  display: grid; grid-template-columns: 24px 1fr auto; grid-template-areas: "rank name profit" ". bar bar" ". meta meta"; gap: 4px 10px; align-items: center;
}
.row summary::-webkit-details-marker { display: none; }
.rank { grid-area: rank; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--track); color: var(--muted); }
.is-best .rank { background: var(--pc); color: #fff; }
.pname { grid-area: name; font-weight: 700; }
.pname::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--pc); margin-right: 8px; }
.profit { grid-area: profit; font-weight: 800; font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.neg { color: var(--neg) !important; }
.bar { grid-area: bar; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--pc); transition: width 0.35s ease; }
.meta { grid-area: meta; font-size: 13px; color: var(--muted); }
.tag { font-style: normal; background: var(--lime); color: var(--brand); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.is-focus { background: color-mix(in srgb, var(--pc) 8%, transparent); border-radius: 12px; }
.breakdown { list-style: none; margin: 0 0 12px 34px; padding: 10px 12px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }

.fine { color: var(--muted); font-size: 13px; }
button { font: inherit; cursor: pointer; }
.ghost { font-weight: 700; padding: 10px 16px; border-radius: 12px; background: transparent; color: var(--accent); border: 1.5px solid var(--border); }
.ghost:hover { border-color: var(--accent); }
.primary { font-weight: 800; font-size: 17px; padding: 14px 18px; border-radius: 12px; border: 0; background: var(--brand); color: var(--lime); width: 100%; margin-top: 14px; }
.primary:hover { background: var(--brand-2); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.settings { margin-top: 16px; }
.settings summary { cursor: pointer; font-weight: 700; }
.settings fieldset { border: 1px solid var(--border); border-radius: 12px; margin: 12px 0; padding: 8px 14px 14px; }
.settings legend { font-weight: 700; padding: 0 6px; }
.settings label { margin-top: 10px; }

/* Pro */
.pro {
  margin: 32px 0; border-radius: 24px; padding: 28px 20px; display: grid; gap: 24px;
  background: radial-gradient(800px 300px at 0% 0%, #2c7a57 0%, transparent 60%), var(--brand); color: #eaf5ee;
}
@media (min-width: 860px) { .pro { grid-template-columns: 1.1fr 1fr; padding: 40px; } }
.pro h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px; color: #fff; }
.pro p { color: #c6dccf; }
.checks { list-style: none; padding: 0; margin: 16px 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--brand); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.price strong { color: var(--lime); font-size: 20px; }
.pro-form { background: var(--surface); color: var(--text); border-radius: 18px; padding: 20px; align-self: start; }
.pro-form textarea, .pro-form input[type=email] { margin-top: 6px; }
.radio-row { border: 0; padding: 0; margin: 16px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.radio-row label { display: flex; gap: 6px; align-items: center; font-weight: 600; border: 1.5px solid var(--border); padding: 8px 12px; border-radius: 99px; cursor: pointer; }
.radio-row label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.radio-row input { width: auto; margin: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
#waitlist-status { min-height: 1.5em; font-weight: 600; margin: 10px 0 0; }

/* FAQ */
.faq h2 { font-size: 28px; letter-spacing: -0.02em; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

footer { padding: 40px 0; color: var(--muted); font-size: 13px; }
footer .logo.small { font-size: 18px; color: var(--text); }
footer .logo.small b { color: var(--accent); }

@media (max-width: 380px) { .hero-stats strong { font-size: 15px; } }
.muted { color: var(--muted); font-size: 13px; }
