/* heyjev.ai — tokens ------------------------------------------------------ */
:root {
  --paper: #fefefe;
  --paper-2: #f3f3f0;
  --ink: #1e1e1e;
  --ink-2: #5c5c5c;
  --ink-3: #9a9a96;
  --line: #dedede;
  --pink: #ff5fa8; /* TypeSafe magenta: everything that is "Jev" */
  --pink-soft: #ffe3f0;
  --blue: #3e8bff; /* nullplatform blue: everything that is "control" */
  --blue-ink: #0f3f8e;

  --go: #03aa5c;
  --go-soft: #0f9f7f;
  --wait: #f5a524;
  --no: #ff5fa8;
  --hard-no: #ff3d2e;
  --neutral: #1e1e1e;

  --display: 'Host Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 6px;
  --gutter: 16px;
  --measure: 40rem;
  --wide: 66rem;
  --dots: radial-gradient(var(--line) 1px, transparent 1px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #141414;
    --paper-2: #1c1c1c;
    --ink: #f2f2ef;
    --ink-2: #b4b4ae;
    --ink-3: #7a7a75;
    --line: #2c2c2c;
    --pink-soft: #3a1a2a;
    --blue-ink: #bcd4ff;
    --neutral: #f2f2ef;
  }
}
:root[data-theme='dark'] {
  --paper: #141414;
  --paper-2: #1c1c1c;
  --ink: #f2f2ef;
  --ink-2: #b4b4ae;
  --ink-3: #7a7a75;
  --line: #2c2c2c;
  --pink-soft: #3a1a2a;
  --blue-ink: #bcd4ff;
  --neutral: #f2f2ef;
}

/* base ----------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image: var(--dots);
  background-size: 22px 22px;
  background-attachment: fixed;
}
a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--blue-ink);
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
button,
textarea {
  font: inherit;
  color: inherit;
}
kbd {
  font-family: var(--mono);
  font-size: 0.75em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--paper);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* demo banner ----------------------------------------------------------------- */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--gutter);
  background: var(--wait);
  color: #1e1e1e;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.demo-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e1e1e;
  animation: pulse 1.2s infinite;
}

/* topbar ---------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.topbar__brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.topbar__brand span {
  color: var(--pink);
}
.topbar__leader,
.verdict__leader {
  flex: 1;
  border-bottom: 2px dotted currentColor;
  opacity: 0.5;
  transform: translateY(-4px);
}
.topbar__tag {
  white-space: nowrap;
}

/* layout ---------------------------------------------------------------------- */
.page {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}
.hero,
.thinking,
.poll {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* hero ------------------------------------------------------------------------- */
.hero {
  padding-top: 40px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--pink);
}
.hero__lede {
  margin: 0 0 26px;
  max-width: 36rem;
  color: var(--ink-2);
  font-size: 1.02rem;
}
.hero__lede strong {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95em;
}

/* terminal input --------------------------------------------------------------- */
.term {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--pink);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.term:focus-within {
  box-shadow: 8px 8px 0 var(--blue);
  transform: translate(-1px, -1px);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-2);
  background-image: var(--dots);
  background-size: 6px 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.term__dots {
  display: inline-flex;
  gap: 5px;
}
.term__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.term__title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.term__count {
  font-variant-numeric: tabular-nums;
}
.term__count.is-hot {
  color: var(--hard-no);
}
.term__input {
  display: block;
  width: 100%;
  min-height: 108px;
  padding: 14px 14px 16px;
  border: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: transparent;
  resize: vertical;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
}
.term__input::placeholder {
  color: var(--ink-3);
}
.term__input:focus {
  outline: none;
}

/* presets ----------------------------------------------------------------------- */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  transition: border-color 120ms ease, transform 120ms ease;
}
.chip:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.chip.is-active {
  border-color: var(--pink);
  background: var(--pink-soft);
}
.chip__idx {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
}
.chip__preview {
  color: var(--ink-3);
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

/* buttons ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease, background 120ms ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}
.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0 22px;
  font-size: 15px;
}
.btn--primary:hover {
  box-shadow: 5px 5px 0 var(--ink);
}
.btn--primary:active {
  box-shadow: 2px 2px 0 var(--ink);
}
.btn--primary .btn__arrow {
  transition: transform 160ms ease;
}
.btn--primary:hover .btn__arrow {
  transform: translateX(3px);
}
.btn--x {
  background: var(--ink);
  color: var(--paper);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--ink-2);
}

.ask__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.ask__hint {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}
.ask__error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--hard-no);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 14px;
}
@media (max-width: 520px) {
  .btn--primary {
    width: 100%;
  }
}

/* thinking ------------------------------------------------------------------------ */
.thinking {
  margin-top: 36px;
  padding: 18px 0 0;
  border-top: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}
.thinking__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.thinking__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 900ms infinite;
}
.thinking__ticker {
  margin-top: 10px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thinking__ticker b {
  color: var(--pink);
  font-weight: 500;
}

/* verdict --------------------------------------------------------------------------- */
.result {
  max-width: var(--measure);
  margin: 40px auto 0;
  display: grid;
  gap: 28px;
  align-items: start;
}
.result__main {
  min-width: 0;
}
@media (min-width: 1000px) {
  .result {
    max-width: var(--wide);
    grid-template-columns: minmax(0, var(--measure)) minmax(280px, 1fr);
    gap: 32px;
  }
  .panel {
    position: sticky;
    top: 20px;
  }
}
.verdict {
  --tone: var(--neutral);
  --on-tone: #fff;
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
  padding: 34px var(--gutter) 30px;
  background: var(--tone);
  color: var(--on-tone);
  overflow: hidden;
  animation: flood 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.verdict::after {
  /* dither at the edge: TypeSafe's halftone, borrowed politely */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 26px;
  background-image: radial-gradient(var(--paper) 1.2px, transparent 1.3px);
  background-size: 6px 6px;
  opacity: 0.9;
  mask-image: linear-gradient(to top, #000, transparent);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
}
.verdict[data-tone='go'] {
  --tone: var(--go);
}
.verdict[data-tone='go-soft'] {
  --tone: var(--go-soft);
}
.verdict[data-tone='wait'] {
  --tone: var(--wait);
  --on-tone: #1e1e1e;
}
.verdict[data-tone='no'] {
  --tone: var(--no);
}
.verdict[data-tone='hard-no'] {
  --tone: var(--hard-no);
}
.verdict[data-tone='neutral'] {
  --tone: var(--neutral);
  --on-tone: var(--paper);
}
.verdict__inner {
  max-width: var(--measure);
  margin: 0 auto;
}
.verdict__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}
.verdict__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 13vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.verdict__subtitle {
  margin: 16px 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.45;
  opacity: 0.95;
}
@media (min-width: 700px) {
  .verdict {
    margin: 0;
    border-radius: var(--radius);
    padding: 40px 32px 36px;
  }
}

/* reasons ------------------------------------------------------------------------------ */
.reasons {
  padding: 26px 0 8px;
}
.reasons__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.reason {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  animation: rise 360ms ease both;
}
.reason:nth-child(2) {
  animation-delay: 70ms;
}
.reason:nth-child(3) {
  animation-delay: 140ms;
}
.reason:last-child {
  border-bottom: 1px solid var(--line);
}
.reason__mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--hard-no);
  margin-top: 1px;
}
.reason--relief .reason__mark {
  background: var(--go);
}
.reason__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}
.reason__evidence {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.missing {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.missing__title {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.missing__list {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.missing__list li + li {
  margin-top: 4px;
}
.missing__hint {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* actions --------------------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}
.actions .btn {
  flex: 1 1 140px;
}
.result__note {
  margin: -14px 0 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.btn.is-done {
  border-color: var(--go);
  color: var(--go);
}

/* answers panel -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  vertical-align: 1px;
}
.tag--noul {
  background: var(--blue);
}
.tag--choice {
  background: var(--pink);
}
.tag--score {
  background: var(--go-soft);
}
.panel {
  padding: 16px 16px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--line);
  font-family: var(--mono);
}
.panel__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.panel__eyebrow span:first-child {
  color: var(--pink);
  font-weight: 600;
}
.panel__eyebrow span:last-child {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-3);
  text-align: right;
}
.panel__leader {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-3px);
}
.panel__intro {
  margin: 0 0 14px;
  font-family: var(--body);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.panel__intro b {
  color: var(--ink);
  font-family: var(--mono);
}
.panel__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'id delta'
    'bar p';
  column-gap: 8px;
  row-gap: 3px;
  padding: 6px 0 7px;
  border-bottom: 1px dotted var(--line);
  font-size: 11px;
  animation: rise 300ms ease both;
}
.row:last-child {
  border-bottom: 0;
}
.row__id {
  grid-area: id;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  color: var(--ink-2);
}
.row__id i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.row--noul .row__id i {
  background: var(--blue);
}
.row--choice .row__id i {
  background: var(--pink);
}
.row--score .row__id i {
  background: var(--go-soft);
}
.row__id code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row__id b {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row__delta {
  grid-area: delta;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-3);
}
.row__delta--risk {
  color: var(--hard-no);
}
.row__delta--relief {
  color: var(--go);
}
.row__delta--missing {
  color: var(--wait);
}
.row__delta--custom {
  color: var(--blue);
}
.row .bar {
  grid-area: bar;
  align-self: center;
}
.row__p {
  grid-area: p;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-width: 34px;
}
.bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--paper-2);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--line);
  transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.row--noul .bar i {
  background: var(--blue);
}
.row--choice .bar i {
  background: var(--pink);
}
.row--score .bar i {
  background: var(--go-soft);
}
.panel__more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.panel__more:hover {
  border-color: var(--blue);
}
.wire {
  margin-top: 10px;
  border-top: 1px dotted var(--line);
  padding-top: 8px;
}
.wire__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
}
.wire__summary::-webkit-details-marker {
  display: none;
}
.wire__summary span:first-child {
  flex: 1;
}
.wire__chev {
  transition: transform 160ms ease;
}
.wire[open] .wire__chev {
  transform: rotate(180deg);
}
.wire__hint {
  margin: 8px 0 6px;
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--ink-3);
}
.wire__hint code {
  font-family: var(--mono);
  font-size: 0.9em;
}
.wire__box {
  position: relative;
  margin-top: 6px;
}
.wire__pre {
  margin: 0;
  max-height: 340px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  white-space: pre;
  tab-size: 2;
}
:root[data-theme='dark'] .wire__pre,
.wire__pre {
  background: #1e1e1e;
  color: #fefefe;
}
.wire__copy {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(30, 30, 30, 0.85);
  color: #fefefe;
  font-family: var(--mono);
  font-size: 10.5px;
  cursor: pointer;
}
.wire__copy:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.panel__foot {
  margin: 12px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* advanced: the question editor, folded under the input ------------------------------------ */
.adv {
  margin: 0 0 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  min-width: 0;
  overflow: hidden;
}
.adv[open] {
  border-style: solid;
  border-color: var(--ink);
}
.adv__summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.adv__summary::-webkit-details-marker {
  display: none;
}
.adv__label {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.adv__hint {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adv__hint b {
  color: var(--ink);
}
.adv__chev {
  transition: transform 160ms ease;
}
.adv[open] .adv__chev {
  transform: rotate(180deg);
}
.adv__body {
  padding: 4px 14px 14px;
  border-top: 1.5px dashed var(--line);
}
.adv__intro {
  margin: 12px 0 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.adv__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.q {
  min-width: 0;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 8px 10px;
}
.q.is-editing {
  border-color: var(--blue);
  box-shadow: 4px 4px 0 var(--blue);
  padding: 12px 14px 14px;
}
.q__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.q__id {
  flex: none;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.q__preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ink-3);
}
.q__custom {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
}
.q__edit {
  flex: none;
  border: 0;
  background: transparent;
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 520px) {
  .q__preview {
    display: none;
  }
}
.edit {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.edit__row {
  display: grid;
  gap: 6px;
}
.edit__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.edit__field {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
}
.edit__field:focus {
  outline: none;
  border-color: var(--blue);
}
.edit__field--mono {
  font-family: var(--mono);
  font-size: 12.5px;
}
.edit__criteria {
  display: grid;
  gap: 6px;
}
.edit__opt {
  display: grid;
  grid-template-columns: minmax(80px, 34%) 1fr auto;
  gap: 6px;
  align-items: center;
}
.edit__key {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 0 4px;
}
.edit__x {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-3);
  cursor: pointer;
  font-size: 14px;
}
.edit__x:hover {
  color: var(--hard-no);
  border-color: var(--hard-no);
}
.edit__add {
  justify-self: start;
  border: 1.5px dashed var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.edit__add:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.edit__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn--small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
}
.adv__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.adv__tools .edit__label {
  flex-basis: 100%;
}
.tagbtn--noul {
  border-color: var(--blue);
  color: var(--blue);
}
.tagbtn--choice {
  border-color: var(--pink);
  color: var(--pink);
}
.tagbtn--score {
  border-color: var(--go-soft);
  color: var(--go-soft);
}
.adv__dirty {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--ink-2);
}
@media (max-width: 520px) {
  .edit__opt {
    grid-template-columns: 1fr auto;
  }
  .edit__opt .edit__field--mono {
    grid-column: 1 / -1;
  }
}

/* poll ------------------------------------------------------------------------------------- */
.poll {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1.5px solid var(--ink);
}
.poll__title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.poll__options {
  display: grid;
  gap: 8px;
}
.poll-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: border-color 120ms ease;
}
.poll-opt:hover {
  border-color: var(--ink);
}
.poll-opt__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--pink-soft);
  transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}
.poll-opt__label,
.poll-opt__pct {
  position: relative;
  z-index: 1;
}
.poll-opt__pct {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.poll-opt.is-mine {
  border-color: var(--pink);
}
.poll-opt:disabled {
  cursor: default;
}
.poll__total {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* footer ------------------------------------------------------------------------------------- */
.footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 26px var(--gutter) 48px;
  border-top: 1.5px solid var(--ink);
  font-size: 14px;
}
.footer__credit {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 13px;
}
.footer__amp {
  color: var(--pink);
  font-weight: 600;
  margin: 0 2px;
}
.footer__fine {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.55;
}

/* landing ------------------------------------------------------------------------------------- */
.landing__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 12vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0 0 22px;
}
.landing__title em {
  font-style: normal;
  color: var(--pink);
}
.landing__lede {
  color: var(--ink-2);
  max-width: 36rem;
  margin: 0 0 36px;
}
.cards {
  display: grid;
  gap: 14px;
}
.card {
  display: block;
  padding: 20px 20px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--line);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 8px 8px 0 var(--pink);
  color: var(--ink);
}
.card--soon {
  border-style: dashed;
  box-shadow: none;
  color: var(--ink-2);
}
.card--soon:hover {
  transform: none;
  box-shadow: none;
  color: var(--ink-2);
}
.card__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card__eyebrow .leader {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-3px);
}
.card__title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.card__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.landing__proof {
  margin: 40px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.landing__proof p {
  margin: 0 0 8px;
}

/* 404 */
.oops {
  padding: 60px 0;
}

/* motion ---------------------------------------------------------------------------------------- */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}
@keyframes flood {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* terms ---------------------------------------------------------------------------------------- */
.terms h2 {
  margin: 30px 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.terms p {
  margin: 0 0 12px;
  color: var(--ink-2);
  line-height: 1.6;
}
