/* ============================================================
   Valueships AI-Native Metrics - raw / technical design system
   Monochrome + single pink accent. Flat, hairline-based. No em/en dashes.
   ============================================================ */
:root {
  --ink:      #111111;
  --ink-2:    #2b2b2b;
  --body:     #4d4d4d;
  --muted:    #8a8a8a;
  --line:     #e6e6e6;
  --line-2:   #111111;
  --bg:       #ffffff;
  --bg-soft:  #f6f6f6;
  --pink:     #ff005e;
  --pink-700: #d6004f;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;

  --maxw:   1144px;
  --radius: 4px;
  --ease:   cubic-bezier(0.2, 0.6, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 0, 94, 0.18); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--pink-700); }

/* Layout helpers */
.page { width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 76px 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Mono label / eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pink);
}
.eyebrow::before { content: "// "; }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  border-radius: var(--radius); border: 1.5px solid var(--line-2);
  padding: 12px 18px; cursor: pointer; background: var(--ink); color: #fff;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Focus visibility (accessibility) */
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

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

/* Intro */
.intro__lead {
  max-width: 60ch; margin-top: 20px;
  font-size: 1.0625rem; color: var(--body);
}
.factstrip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 28px;
  margin: 28px 0 0; padding: 0;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
}
.factstrip strong { color: var(--ink); font-weight: 700; }

/* Explorer + filters + list */
.explorer__hint { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.explorer__grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; margin-top: 36px; }

.filters { display: flex; flex-direction: column; gap: 24px; align-self: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { margin: 0; }
.field__help { font-size: 0.8rem; color: var(--muted); margin: 0; }

.search, .select {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 10px 12px; width: 100%;
}
.search::placeholder { color: var(--muted); }

.catlist { display: flex; flex-direction: column; gap: 2px; }
.cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--ink-2);
  background: transparent; border: 0; border-left: 2px solid transparent;
  padding: 6px 10px; text-align: left; cursor: pointer;
}
.cat:hover { background: var(--bg-soft); }
.cat__count { color: var(--muted); font-size: 0.72rem; }
.cat[aria-pressed="true"] { color: var(--ink); border-left-color: var(--pink); font-weight: 700; }

.vtlist { display: flex; flex-wrap: wrap; gap: 6px; }
.vt {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-2); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 5px 9px; cursor: pointer;
}
.vt:hover { border-color: var(--line-2); }
.vt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.results__summary { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.activefilters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.activefilters:empty { display: none; }
.chip {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 8px; cursor: pointer;
}
.chip:hover { border-color: var(--pink); color: var(--pink-700); }

.metriclist { border-top: 1px solid var(--line); }
.metric { border-bottom: 1px solid var(--line); }
.metric__h { margin: 0; font-size: inherit; font-weight: inherit; }
.metric__toggle {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name chev" "meta chev" "teaser chev";
  align-items: center; gap: 2px 12px; width: 100%; text-align: left;
  background: transparent; border: 0; padding: 18px 4px; cursor: pointer;
}
.metric__toggle:hover { background: var(--bg-soft); }
.metric__name { grid-area: name; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.metric__meta { grid-area: meta; display: flex; gap: 10px; align-items: center; }
.metric__cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.metric__match { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pink); }
.metric__teaser { grid-area: teaser; font-size: 0.9rem; color: var(--body); }
.metric__chev { grid-area: chev; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s var(--ease); }
.metric.is-open .metric__chev { transform: rotate(225deg); }

/* Accordion panel */
.metric__panel { padding: 4px 4px 28px; }
.metric__panel[hidden] { display: none; }
.panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel__block p { margin-top: 8px; color: var(--body); font-size: 0.95rem; }
.panel__alts { margin-top: 28px; }
.alts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.alt { background: var(--bg); padding: 16px; }
.alt__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.alt__name { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.alt__vt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pink); }
.alt__desc { margin: 6px 0 10px; font-size: 0.9rem; color: var(--body); }
.alt__measure { display: flex; flex-direction: column; gap: 4px; }
.alt__formula { font-size: 0.82rem; color: var(--ink-2); }
.panel__foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px 7px; }
.metriclist__empty { padding: 40px 0; color: var(--muted); }

/* Iconic starting points */
.startstrip { margin-bottom: 24px; }
.startstrip__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 10px; }
.start { background: var(--bg); border: 0; border-top: 2px solid var(--pink); padding: 14px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.start:hover { background: var(--bg-soft); }
.start__name { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.start__teaser { font-size: 0.82rem; color: var(--muted); }

/* Closing CTA */
.cta { background: var(--bg-soft); }
.cta__inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta__lead { max-width: 54ch; margin-top: 14px; color: var(--body); }
.cta__btn { white-space: nowrap; }

/* Responsive */
@media (max-width: 960px) {
  .section { padding: 52px 0; }
  .explorer__grid { grid-template-columns: 1fr; gap: 28px; }
  .filters { flex-direction: column; }
  .catlist { flex-direction: row; flex-wrap: wrap; }
  .cat { border-left: 0; border-bottom: 2px solid transparent; }
  .cat[aria-pressed="true"] { border-left: 0; border-bottom-color: var(--pink); }
  .panel__grid { grid-template-columns: 1fr; gap: 18px; }
  .alts { grid-template-columns: 1fr; }
  .alt--filler { display: none; }
  .startstrip__items { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .metric__toggle { grid-template-columns: 1fr; grid-template-areas: "name" "meta" "teaser"; }
  .metric__chev { display: none; }
  .startstrip__items { grid-template-columns: 1fr; }
  .cta__btn { width: 100%; }
}
