/* Fonts self-hosted (latin subset from fontsource, OFL) – no third-party requests. */
@font-face { font-family: 'Inter'; src: url('/static/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/static/space-grotesk-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/static/space-grotesk-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/static/instrument-serif-italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #0b0a10;
  --surface: #141219;
  --surface-2: #17151f;
  --line: #2a2733;
  --line-2: #3a3644;
  --ink: #f4f2ec;
  --muted: #a3a0ad;
  --soft: #c9c6d1;
  --faint: #5d5968;
  --accent: #d8ff5a;
  --paper: #f4f2ec;
  --paper-2: #e9e6de;
  --paper-ink: #0b0a10;
  --paper-muted: #3f3c47;
  --violet: #5b42f3;
  --ok: #8ff0b4; --ok-bg: #1d3a26;
  --wait: #ffd27a; --wait-bg: #3d2f10;
  --no: #ff9da1; --no-bg: #401a1d;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { max-width: 1280px; margin: 0 auto; padding: 0 24px 64px; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { margin: 0 0 8px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow--accent { color: var(--accent); }
.eyebrow--dark { color: var(--violet); }

/* chrome */
.banner { padding: 9px 16px; text-align: center; font-size: 14px; background: var(--accent); color: var(--paper-ink); }
.banner a { color: var(--paper-ink); font-weight: 700; }
.top { max-width: 1280px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.top__brand { display: flex; align-items: center; gap: 12px; }
.top__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.top__nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.top__nav a:not(.btn):hover { color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.logo__mark { fill: var(--accent); }
.logo__sub { font-weight: 500; color: var(--muted); letter-spacing: 0; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--soft); }
.foot { max-width: 1280px; margin: 0 auto; padding: 32px 24px 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot strong { color: var(--ink); }

/* buttons, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn--accent { background: var(--accent); color: var(--paper-ink); }
.btn--accent:hover { color: var(--paper-ink); }
.btn--light { background: var(--paper); color: var(--paper-ink); }
.btn--light:hover { color: var(--paper-ink); }
.btn--dark { background: var(--paper-ink); color: var(--paper); min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--dark:hover { color: var(--accent); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: transparent; font-weight: 600; }
.btn--big { min-height: 58px; padding: 0 28px; font-size: 17px; border-radius: 18px; }
.tag-aff { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--accent); color: var(--paper-ink); white-space: nowrap; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); white-space: nowrap; }
.pending { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--wait-bg); color: var(--wait); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.more { margin-left: auto; font-size: 14px; color: var(--muted); }

/* hero */
.hero { padding: 64px 0 40px; }
.hero__chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero__title { margin: 0 0 28px; max-width: 12ch; font-size: clamp(54px, 10vw, 152px); line-height: 0.92; letter-spacing: -0.05em; }
.hero__lead { margin: 0 0 40px; max-width: 560px; font-size: 20px; color: var(--muted); }
.search { max-width: 920px; display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; background: var(--surface-2); border: 1px solid #2f2b3a; border-radius: 28px; box-shadow: 0 0 0 6px rgba(216, 255, 90, 0.06), 0 40px 80px -40px #000; transition: border-color 0.15s, box-shadow 0.15s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(216, 255, 90, 0.14), 0 40px 80px -40px #000; }
.search__field { flex: 1 1 300px; display: flex; align-items: center; gap: 14px; padding: 0 16px; color: var(--muted); }
.search__input { flex: 1; min-width: 0; height: 60px; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 22px; }
.search__input::placeholder { color: var(--faint); }
.search__input:focus-visible { outline: none; }
.search__kbd { flex: none; padding: 2px 9px; border-radius: 7px; border: 1px solid var(--line-2); font: 13px var(--sans); color: var(--muted); }
.search__go { min-height: 64px; padding: 0 34px; font-size: 18px; border-radius: 20px; }
.intents { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.intents a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-size: 15px; }
.intents a:hover, .intents a.is-on { background: var(--accent); border-color: var(--accent); color: var(--paper-ink); }

/* marquee */
.marquee { margin: 0 -24px; border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 48px; font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--faint); animation: marquee 38s linear infinite; }
.marquee__star { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } html { scroll-behavior: auto; } }

/* categories */
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 40px 0 8px; scrollbar-width: none; scroll-margin-top: 16px; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.cat span { font-size: 12px; font-weight: 500; opacity: 0.65; }
.cat.is-on { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.cat.is-on:hover { color: var(--paper-ink); }
.cat.is-soon { color: var(--muted); font-weight: 500; }

/* results */
.results { padding-top: 16px; scroll-margin-top: 16px; transition: opacity 0.15s; }
.results.is-loading { opacity: 0.5; }
.count { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.top-card { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 32px; padding: 36px; border-radius: 28px; background: var(--paper); color: var(--paper-ink); animation: rise 0.35s ease-out; }
.top-card a:hover { color: var(--violet); }
.top-card__main { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.top-card__badge { margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--paper-ink); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.top-card__name { margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: 0.95; letter-spacing: -0.05em; }
.top-card__name a { text-decoration: none; }
.top-card__summary { margin: 0; max-width: 520px; font-size: 19px; color: var(--paper-muted); }
.top-card__side { flex: 1 1 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 24px; border-radius: 20px; background: var(--paper-2); }
.top-card__why { margin: 0; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.15; }
.top-card__fact { margin: 12px 0 0; font-size: 14px; }
.top-card .tag-aff { border: 1px solid var(--paper-ink); }
.top-card .more { color: var(--paper-muted); }
.top-card .btn--outline { border-color: var(--paper-ink); color: var(--paper-ink); }
.top-card .pending { background: #f3e2b8; color: #5c3d00; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; transition: border-color 0.15s, transform 0.15s; animation: rise 0.35s ease-out both; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card__rank { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--faint); }
.card__name { margin: 0; font-size: 30px; }
.card__name a { text-decoration: none; }
.card__summary { margin: 0; color: var(--muted); }
.card__why { margin: 0; padding-left: 14px; border-left: 2px solid var(--accent); font-size: 15px; }
.card__fact { margin: 0; font-size: 14px; }
.card .actions { margin-top: auto; padding-top: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .top-card, .card { animation: none; } }
.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: 28px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }
.empty .empty__title { color: var(--ink); font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.empty--page { margin-top: 48px; }

/* how */
.how { padding: 120px 0 32px; scroll-margin-top: 16px; }
.how__title { margin: 0 0 40px; max-width: 760px; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); }
.how__grid > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.how__n { margin: 0 0 18px; font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1; color: var(--accent); }
.how h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.how p { margin: 0; color: var(--muted); }

/* ad landing (/discover) */
.top--ads { justify-content: space-between; }
.ad-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mode-ads .hero { margin: 0 -24px; padding: 48px 24px 56px; background: var(--accent); color: var(--paper-ink); border-radius: 0 0 40px 40px; }
.mode-ads .hero em { color: var(--paper-ink); }
.mode-ads .hero__chip { border-color: rgba(11, 10, 16, 0.25); color: var(--paper-ink); }
.mode-ads .dot { background: var(--paper-ink); box-shadow: none; }
.mode-ads .hero__lead { color: #2b2a1f; }
.mode-ads .search { background: var(--paper-ink); border-color: var(--paper-ink); box-shadow: none; }
.mode-ads .intents a { background: transparent; border-color: rgba(11, 10, 16, 0.3); color: var(--paper-ink); }
.mode-ads .intents a:hover, .mode-ads .intents a.is-on { background: var(--paper-ink); color: var(--accent); }
.mode-ads .marquee { display: none; }

/* detail */
.detail { max-width: 760px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 20px; }
.detail__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 14px; }
.detail__name { margin: 0; font-size: clamp(64px, 12vw, 128px); line-height: 0.9; letter-spacing: -0.06em; }
.detail__summary { margin: 0; font-size: 20px; color: var(--soft); }
.panel { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.uses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.uses li { display: flex; gap: 14px; align-items: baseline; }
.uses span { font-family: var(--display); font-weight: 700; color: var(--accent); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; }
.detail__cta { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; }
@media (max-width: 640px) {
  .detail__cta { position: sticky; bottom: 0; margin: 0 -24px; padding: 16px 24px 24px; background: var(--bg); border-top: 1px solid var(--line); }
  .detail__cta .btn--big { flex: 1; }
}

/* review console */
.launch { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 40px; margin: 16px 0 20px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.ring { flex: none; width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) var(--deg), var(--line) 0); }
.ring__inner { width: 184px; height: 184px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; }
.ring__n { margin: 0; font-family: var(--display); font-size: 84px; font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }
.ring__l { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.launch__text { flex: 1 1 360px; }
.launch__title { margin: 0 0 14px; font-size: clamp(40px, 5vw, 68px); line-height: 0.95; letter-spacing: -0.045em; }
.launch a { color: var(--accent); }
.pillars { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pillars li { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 180px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pillars__bar { display: block; height: var(--h); border-radius: 10px; background: var(--accent); }
.pillars__bar.is-zero { background: var(--line); }
.pillars__n { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1; }
.pillars__l { font-size: 13px; color: var(--muted); }
.block { margin-bottom: 40px; }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block__head h2 { margin: 0; font-size: 32px; }
.link { color: var(--accent); font-weight: 600; font-size: 14px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.reg { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.reg th, .reg td { padding: 14px 18px; border-bottom: 1px solid #1f1c27; text-align: left; }
.reg th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom-color: var(--line); }
.reg tbody tr:hover { background: #18161f; }
.reg__name { font-weight: 700; font-size: 15px; text-decoration: none; }
.yes { color: var(--accent); }
.chip { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.chip--ok { background: var(--ok-bg); color: var(--ok); }
.chip--wait { background: var(--wait-bg); color: var(--wait); }
.chip--no { background: var(--no-bg); color: var(--no); }
.chip--open { background: #23202b; color: var(--soft); }
.todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.todo__item { display: block; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.15s; }
.todo__item:hover { border-color: var(--accent); color: var(--ink); }
.todo__name { margin: 0 0 6px; font-family: var(--display); font-size: 22px; font-weight: 700; }
.todo__next { margin: 0 0 10px; color: var(--accent); font-weight: 600; }
.todo ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }

/* forms */
.page-title { font-size: clamp(40px, 6vw, 72px); margin: 8px 0 20px; letter-spacing: -0.05em; }
.notice { padding: 12px 16px; border-radius: 14px; background: var(--wait-bg); color: var(--wait); }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.notice--err { background: var(--no-bg); color: var(--no); }
.edit fieldset { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.edit legend { padding: 0 6px; font-family: var(--display); font-weight: 700; }
.field { display: grid; gap: 4px; font-size: 14px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-weight: 600; }
.field small { color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.edit__actions { position: sticky; bottom: 0; padding: 14px 0; background: var(--bg); }
code { padding: 1px 6px; border-radius: 5px; background: #23202b; font-size: 13px; }

@media (max-width: 640px) {
  main { padding: 0 16px 48px; }
  .top { padding: 16px; }
  .top__nav { gap: 16px; font-size: 14px; }
  .top__nav .btn { display: none; }
  .hero { padding-top: 32px; }
  .hero__lead { font-size: 17px; margin-bottom: 28px; }
  .search { border-radius: 22px; }
  .search__input { font-size: 18px; height: 52px; }
  .search__kbd { display: none; }
  .search__go { flex: 1; min-height: 54px; }
  .marquee { margin: 0 -16px; }
  .marquee__track { font-size: 22px; }
  .mode-ads .hero { margin: 0 -16px; padding: 32px 16px 40px; }
  .top-card { padding: 22px; gap: 20px; border-radius: 24px; }
  .top-card__side { padding: 18px; }
  .top-card__why { font-size: 24px; }
  .card { padding: 22px; min-height: 0; }
  .launch { padding: 24px; gap: 24px; }
  .ring { width: 168px; height: 168px; }
  .ring__inner { width: 140px; height: 140px; }
  .ring__n { font-size: 60px; }
  .detail__cta { margin: 0 -16px; padding-inline: 16px; }
}
