/* Same palette as the consignment portal (consign.benobots.com), so the two feel like one business.
   Theme: the device setting decides, unless the visitor picked one with the header link, which the Worker
   marks as data-theme="light|dark" on <html> (cookie, same as the portal; no script). */
:root {
  color-scheme: light;
  --bg: #f6f5f1; --card: #fff; --band: #eeede6; --ink: #1d1d1b; --mute: #5f5f58; --line: #dcdbd3;
  --accent: #1f5f4a; --accent-hover: #174a39; --accent-ink: #fff; --accent-soft: #e3efe9;
  --bad: #a4281f; --bad-bg: #fde8e6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --bg: #141412; --card: #1e1e1b; --band: #1a1a17; --ink: #ecebe5; --mute: #a3a298; --line: #33332e;
    --accent: #58b894; --accent-hover: #6fcaa6; --accent-ink: #0d1f18; --accent-soft: #17302a;
    --bad: #f08b83; --bad-bg: #3d1c19;
  }
  :root:not([data-theme=light]) .logo { filter: invert(1); }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #141412; --card: #1e1e1b; --band: #1a1a17; --ink: #ecebe5; --mute: #a3a298; --line: #33332e;
  --accent: #58b894; --accent-hover: #6fcaa6; --accent-ink: #0d1f18; --accent-soft: #17302a;
  --bad: #f08b83; --bad-bg: #3d1c19;
}
:root[data-theme=dark] .logo { filter: invert(1); }

/* Only the link to the other theme shows. */
.theme { white-space: nowrap; }
.theme.to-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .theme.to-dark { display: none; }
  :root:not([data-theme=light]) .theme.to-light { display: inline; }
}
:root[data-theme=dark] .theme.to-dark { display: none; }
:root[data-theme=dark] .theme.to-light { display: inline; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
section { padding: 64px 0; scroll-margin-top: 64px; }
.band { background: var(--band); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: .95rem; }
.nav a { color: var(--mute); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) {
  .nav a:not(.nav-cta):not(.theme) { display: none; }
  .nav { gap: 14px; }
}

/* Buttons */
.button {
  display: inline-block; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  padding: 12px 22px; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: var(--accent-soft); color: var(--accent); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75em; }
.lead { font-size: 1.2rem; color: var(--mute); max-width: 34em; }
.lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-logo { width: 220px; }
@media (max-width: 760px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-logo { order: -1; width: 120px; }
}

/* How it works */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.steps p { color: var(--mute); margin: 0; font-size: .97rem; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Rates */
.rates-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.rates { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-variant-numeric: tabular-nums; }
.rates th, .rates td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.rates tbody tr:last-child td { border-bottom: 0; }
.rates th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); font-weight: 600; }
.rates td:last-child, .rates th:last-child { text-align: right; }
.rates td:last-child { font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.example { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 20px 0; }
.example p { margin: 0; }
.example .example-title { font-weight: 700; margin-bottom: 4px; }
.fine { color: var(--mute); font-size: .92rem; }
@media (max-width: 760px) { .rates-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Perks */
.perks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.perks h3 { color: var(--accent); }
.perks p { color: var(--mute); margin: 0; }
@media (max-width: 640px) { .perks { grid-template-columns: 1fr; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--mute); }

/* Contact form */
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-top: 24px; display: grid; gap: 16px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact .opt { font-weight: 400; color: var(--mute); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hint { color: var(--mute); font-size: .9rem; margin: -8px 0 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.form-status.error { background: var(--bad-bg); color: var(--bad); }
.contact .button { justify-self: start; }

/* Thanks / 404 */
.message-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.message-page .logo { width: 110px; margin-bottom: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--mute); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
