/* Market Lens — site styles.

   One design system, shared with the app: the tokens below are the app's
   own (@theme in app/src/styles.css) so the site and the product read as
   one thing. Warm near-black, never pure; one accent; system fonts so
   there is no font payload; no JavaScript anywhere on the page. */

:root {
  --bg: #171614;
  --surface: #201e1c;
  --surface-2: #26241f;
  --text: #e8e4dd;
  --muted: #a39c8f;         /* lifted from the app's #979083 to clear 4.5:1 on --bg */
  --border: #35322c;
  --accent: #7fae93;
  --accent-ink: #171614;
  --bid: #3fa36c;
  --ask: #c4564a;
  --gold: #c9a35a;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  --measure: 62ch;
  --page: 1180px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 150ms;
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--space-3); }
h3 { font-size: 1.3rem; margin-bottom: var(--space-1); }
p { margin: 0 0 var(--space-2); max-width: var(--measure); }
em { color: var(--gold); font-style: normal; }
small { color: var(--muted); }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--space-2); top: -3rem;
  padding: 0.5rem 0.75rem; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); z-index: 10;
}
.skip:focus { top: var(--space-2); }

/* ---- header ---- */

.top {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-3) var(--space-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.wordmark {
  color: var(--text); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
}
.wordmark span { color: var(--accent); margin-left: 0.3em; }
.wordmark:hover { text-decoration: none; }
.top nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.top nav a { color: var(--muted); font-size: 0.95rem; transition: color var(--fast) var(--ease-out); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav .github { color: var(--text); }

/* The GitHub mark, inline with its label wherever a link goes to the repo. */
.gh {
  width: 1.05em; height: 1.05em; fill: currentColor;
  vertical-align: -0.18em; margin-right: 0.45em;
}

/* ---- hero ---- */

main { max-width: var(--page); margin: 0 auto; padding: 0 var(--space-3); }

.hero { padding: var(--space-5) 0 var(--space-6); }
.hero-copy { max-width: 46rem; margin-bottom: var(--space-4); }
.eyebrow {
  color: var(--accent); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: var(--space-2);
}
.lede { font-size: 1.2rem; color: var(--muted); margin-top: var(--space-3); }
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

.button {
  display: inline-block; padding: 0.7rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text); font-weight: 500;
  transition: transform var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out);
}
.button:hover { text-decoration: none; background: var(--surface); transform: translateY(-1px); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.primary:hover { background: #8dbca1; }

.hero-shot {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); background: var(--surface);
}

/* ---- premise ---- */

.premise { padding-bottom: var(--space-6); }
.premise-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-4);
}
.premise-lead { font-size: 1.35rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.premise-grid p:not(.premise-lead) { color: var(--muted); }

/* ---- features ---- */

.features { padding-bottom: var(--space-5); }
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-4); align-items: center;
  padding: var(--space-5) 0; border-top: 1px solid var(--border);
}
/* Reversed rows swap the column widths too, so the figure keeps the wide
   column whichever side it is on. */
.feature.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.reverse .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); }
.meta { font-size: 0.9rem; color: var(--muted); opacity: 0.8; margin-top: var(--space-2); }
.feature figure {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.feature .panel-shot { max-width: 24rem; justify-self: center; }

@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-4) 0; }
  .feature.reverse .feature-copy { order: 0; }
  .feature .panel-shot { max-width: 18rem; }
}

/* ---- venues ---- */

.venues { padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.venue-list {
  list-style: none; padding: 0; margin: 0 0 var(--space-3);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--space-2);
}
.venue-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.8rem 1rem; font-weight: 500; display: flex; flex-direction: column; gap: 0.15rem;
}
.venue-list small { font-weight: 400; font-size: 0.85rem; }
.venues-note { color: var(--muted); }

/* ---- how ---- */

.how { padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-2); }
.how-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.how-card p { color: var(--muted); margin: 0; }

/* ---- faq ---- */

.faq { padding: var(--space-5) 0 var(--space-2); border-top: 1px solid var(--border); }
.faq dl { margin: 0; max-width: var(--measure); }
.faq dt { font-weight: 600; margin-top: var(--space-3); }
.faq dd { margin: var(--space-1) 0 0; color: var(--muted); }

/* ---- notice ---- */

.notice {
  margin: var(--space-4) 0 var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
}
.notice h2 { font-size: 1.2rem; margin-bottom: var(--space-1); }
.notice p { color: var(--muted); margin: 0; max-width: none; }

/* ---- footer ---- */

.bottom {
  max-width: var(--page); margin: 0 auto; padding: var(--space-4) var(--space-3) var(--space-5);
  border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem;
}
.bottom p { max-width: none; margin-bottom: var(--space-1); }
