@font-face {
  font-family: "BDO Grotesk";
  src: url("/fonts/BDOGrotesk-VF.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #ebebeb;
  --surface: #f5f5f5;
  --surface-muted: #dfdfdf;
  --ink: #121212;
  --muted: #6e6e6e;
  --subtle: #a8a8a8;
  --line: rgb(18 18 18 / 18%);
  --line-strong: rgb(18 18 18 / 34%);
  --accent: #ea4335;
  --accent-hover: #d83528;
  --accent-soft: #fce0dd;
  --high: #ea4335;
  --medium: #121212;
  --low: #6e6e6e;
  --radius-control: 12px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-sans: "BDO Grotesk", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121212;
    --surface: #1f1f1f;
    --surface-muted: #2a2a2a;
    --ink: #ebebeb;
    --muted: #a8a8a8;
    --subtle: #6e6e6e;
    --line: rgb(235 235 235 / 18%);
    --line-strong: rgb(235 235 235 / 36%);
    --accent-soft: #4d2421;
    --medium: #ebebeb;
    --low: #a8a8a8;
  }
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, select, input { border-radius: var(--radius-control); }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgb(235 235 235 / 18%);
  background: #121212;
  color: #ebebeb;
}
.topbar .brand { color: #ebebeb; }
.topbar .brand-divider { background: rgb(235 235 235 / 36%); }
.topbar .button { border-color: rgb(235 235 235 / 36%); color: #ebebeb; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}
.brand picture, .login picture { display: block; line-height: 0; }
.brand-logo { display: block; width: 116px; height: auto; }
.brand-logo-stacked { width: 96px; }
.brand-divider { width: 1px; height: 22px; background: var(--line-strong); }
.brand-context { font-size: .86rem; font-weight: 700; letter-spacing: -.025em; }

.shell {
  width: min(100% - 3rem, 1380px);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0 6rem;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: .91;
  letter-spacing: -.055em;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}
h3 {
  margin-bottom: .25rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.intro-copy {
  max-width: 56ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}
.generated, .section-count, .card-slug, .metric-label {
  color: var(--muted);
  font-size: .76rem;
}
.generated { margin-bottom: .15rem; white-space: nowrap; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 5.5rem;
  border: 1px solid var(--line-strong);
  background: var(--line-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.metric { min-height: 164px; padding: 1.25rem; background: var(--surface); }
.metric-label { margin-bottom: 3.2rem; font-weight: 700; }
.metric-value {
  margin-bottom: .25rem;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.065em;
}
.metric-hint { margin-bottom: 0; color: var(--muted); font-size: .8rem; }

.toolbar, .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(230px, .85fr) minmax(0, 2.15fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-strong);
}
.toolbar-head, .toolbar-controls { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.toolbar-head { align-items: baseline; }
.search-status { margin: 0; color: var(--muted); font-size: .78rem; }
.toolbar-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, .8fr);
  align-items: end;
  gap: .75rem;
}
.search-field { display: grid; min-width: 0; gap: .35rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.search-field input { width: 100%; }
.filters { display: contents; }
.filters label { display: grid; min-width: 0; gap: .35rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
select, input {
  min-height: 42px;
  padding: .55rem .7rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
select:hover, input:hover { border-color: var(--ink); }
.section-block, .report-section { margin-top: 5rem; }
.section-heading { margin-bottom: 1.35rem; }
.section-count { margin-bottom: .15rem; white-space: nowrap; }
.suggestions { min-height: 0; }
.suggestion-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.suggestion-label { flex: 0 0 100%; margin: 0; color: var(--muted); font-size: .76rem; font-weight: 700; }
.suggestion {
  display: inline-grid;
  gap: .18rem;
  min-width: 180px;
  padding: .7rem .8rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  border-radius: 14px;
}
.suggestion:hover { border-color: var(--accent); }
.suggestion strong { font-size: .85rem; }
.suggestion small { color: var(--muted); font-size: .72rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tool-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-card);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.tool-card:hover { border-color: var(--accent); background: var(--page); }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.card-slug { margin-bottom: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: 0; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; margin: 1.7rem 0 1.2rem; }
.value-row dt { margin-bottom: .22rem; color: var(--muted); font-size: .7rem; font-weight: 700; }
.value-row dd { margin: 0; font-size: .88rem; line-height: 1.25; overflow-wrap: anywhere; }
.card-note-label {
  margin: 1.2rem 0 .25rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-note { flex: 1; margin: 0 0 1rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.card-footer { display: flex; flex-wrap: wrap; gap: .8rem 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.card-link { color: var(--accent); font-size: .8rem; font-weight: 700; text-underline-offset: 3px; }
.card-link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 2rem; border: 1px dashed var(--line-strong); color: var(--muted); }
.report {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font: .8rem/1.6 var(--font-mono);
  letter-spacing: 0;
  white-space: pre-wrap;
  border-radius: var(--radius-card);
}
.button {
  min-height: 38px;
  padding: .5rem .8rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}
.button:hover { border-color: var(--accent); color: var(--accent); }
.button-quiet { color: var(--muted); }
.muted { color: var(--muted); line-height: 1.45; }

@media (max-width: 760px) {
  .topbar { min-height: 64px; padding-inline: 1rem; }
  .brand-logo { width: 96px; }
  .brand-divider { height: 18px; }
  .brand-context { font-size: .78rem; }
  .shell { width: min(100% - 1.5rem, 620px); padding-top: 3rem; }
  .intro, .section-heading { align-items: start; flex-direction: column; }
  .toolbar { grid-template-columns: 1fr; gap: 1.25rem; }
  .toolbar-head { align-items: start; flex-direction: column; }
  .toolbar-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }
  .toolbar-controls > .button { width: auto; }
  .search-field { width: auto; }
  .filters {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    width: 100%;
  }
  .filters label { min-width: 0; }
  .generated { white-space: normal; }
  .metrics, .card-grid { grid-template-columns: 1fr; }
  .metric { min-height: 126px; }
  .metric-label { margin-bottom: 1.4rem; }
  .details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .toolbar-controls { grid-template-columns: 1fr; }
  .toolbar-controls > .button { width: 100%; }
  .filters { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
