/* DumpStation site — shared styles for the landing page and the docs.
   Pitch-black by default (matches the app's "Black" theme), light on request. */

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-1: #0a0a0a;
  --bg-2: #111;
  --bg-3: #1a1a1a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #ededed;
  --fg-2: #a1a1a1;
  --fg-3: #6e6e6e;
  --coral: #ff6a55;
  --coral-2: #d9443a;
  --coral-ink: #ff8a78;
  --coral-wash: rgba(255, 106, 85, 0.12);
  --ok: #3ecf8e;
  --warn: #f5a524;
  --err: #ff5b5b;
  --info: #58a6ff;
  --code-bg: #0a0a0a;
  --tok-c: #6e6e6e;
  --tok-k: #ff8a78;
  --tok-s: #9ad8a8;
  --tok-v: #f5c97a;
  --shadow: 0 0 0 1px var(--line), 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1180px;
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaf8;
  --bg-1: #fff;
  --bg-2: #f3f2ef;
  --bg-3: #e9e7e3;
  --line: rgba(10, 10, 10, 0.09);
  --line-2: rgba(10, 10, 10, 0.18);
  --fg: #111;
  --fg-2: #55524d;
  --fg-3: #8b8780;
  --coral: #e2483a;
  --coral-2: #c23a2e;
  --coral-ink: #c23a2e;
  --coral-wash: rgba(226, 72, 58, 0.09);
  --ok: #158f5a;
  --warn: #b26b00;
  --err: #d12f2f;
  --info: #1f6fd1;
  --code-bg: #0c0c0c;
  --shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(40, 30, 20, 0.35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font-body);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, .prose a { color: var(--coral-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
p a:hover, li a:hover, td a:hover, .prose a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: 0.875em; }
:not(pre) > code {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.38em;
  font-size: 0.84em;
  white-space: nowrap;
}
::selection { background: var(--coral); color: #000; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.hdr[data-scrolled] { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 17px/1 var(--font-display); letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--fg-2); font-size: 14.5px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--bg-2); }
.hdr-act { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 9px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  color: var(--fg-2); transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); background: var(--bg-2); }
.icon-btn svg { width: 17px; height: 17px; }
.gh-stars { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--fg-2); font-size: 14px; transition: color .15s, border-color .15s; }
.gh-stars:hover { color: var(--fg); border-color: var(--line-2); }
.gh-stars svg { width: 16px; height: 16px; }
.menu-btn { display: none; }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }

@media (max-width: 860px) {
  .nav, .hdr-act .gh-stars, .hdr-act .btn { display: none; }
  .menu-btn { display: inline-grid; }
  .hdr-in { justify-content: space-between; }
}

.mnav {
  position: fixed; inset: 64px 0 auto 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px 16px 20px; display: none;
}
.mnav[data-open] { display: block; animation: drop .22s var(--ease); }
.mnav a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 17px; }
.mnav .btn { margin-top: 16px; width: 100%; justify-content: center; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-1);
  font-weight: 560; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--bg-2); border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--fg) 86%, var(--bg)); border-color: transparent; }

.btn-lg { height: 46px; padding: 0 20px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2);
}
.h-display {
  font: 680 clamp(40px, 6vw, 74px)/1.02 var(--font-display);
  letter-spacing: -0.035em; margin: 0; text-wrap: balance;
}
.h-section {
  font: 650 clamp(30px, 4.2vw, 50px)/1.04 var(--font-display);
  letter-spacing: -0.03em; margin: 14px 0 0; text-wrap: balance;
}
.h-card { font: 620 19px/1.25 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.lede { color: var(--fg-2); font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.accent { color: var(--coral); }
.serif-it { font-style: italic; font-weight: 400; }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec-hd { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-hd .lede { margin-top: 18px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Code blocks ---------- */
.code { position: relative; border-radius: 12px; background: var(--code-bg); border: 1px solid rgba(255,255,255,.09); overflow: hidden; color: #e6e6e6; }
.code-hd { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; height: 42px; border-bottom: 1px solid rgba(255,255,255,.08); font: 12.5px var(--font-mono); color: #8a8a8a; }
.code-hd .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button { border: 0; background: transparent; color: #8a8a8a; font: 12.5px var(--font-mono); padding: 6px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.code-tabs button[aria-selected="true"] { color: #fff; background: #1d1d1d; }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #8a8a8a; cursor: pointer; padding: 6px 9px; border-radius: 7px; font: 12px var(--font-body); transition: color .15s, background .15s; flex: none; }
.copy:hover { color: #fff; background: #1d1d1d; }
.copy svg { width: 14px; height: 14px; }
.copy[data-done] { color: var(--ok); }
pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13px/1.7 var(--font-mono); tab-size: 2; }
pre code { font-size: inherit; }
.cmd .copy { color: var(--fg-3); }
.cmd .copy:hover { color: var(--fg); background: var(--bg-2); }
.tk-c { color: var(--tok-c); font-style: italic; }
.tk-k { color: var(--tok-k); }
.tk-s { color: var(--tok-s); }
.tk-v { color: var(--tok-v); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 580 18px/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: rotate(45deg) translateY(-4px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details > div { padding: 0 0 22px; color: var(--fg-2); max-width: 68ch; }
.faq details > div p { margin: 0 0 10px; }
/* ---------- CTA + footer ---------- */
.cta { text-align: center; padding: clamp(90px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.cta .h-section { margin: 18px auto 0; max-width: 16ch; }
.cta .lede { margin: 20px auto 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .hero-cta { justify-content: center; }
.cta-mark { width: 56px; margin: 0 auto; }
.ftr { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--fg-2); font-size: 14px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ftr h4 { margin: 0 0 12px; font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a:hover { color: var(--fg); }
.ftr-bottom { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-3); font-size: 13px; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > div:first-child { grid-column: span 2; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 560; transition: all .25s var(--ease); z-index: 90; }
.toast[data-on] { opacity: 1; transform: translate(-50%, 0); }

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ftr a, .mnav a, .faq a.btn { color: inherit; text-decoration: none; }
.lede code, .faq code { white-space: normal; overflow-wrap: anywhere; }
