/* ==========================================================================
   Kill The Idea — bold, modern decision instrument
   One red accent. Heavy display type. Hard edges. No gradients, no rounding.
   ========================================================================== */

:root {
--paper:        #e6e5ca; /* #f6f3e8 warm cream ground                        */
  --paper-2:    #fffdf6;  /* raised panels, inputs, option chips      */
  --ink:        #16150f;  /* near-black, warm                         */
  --ink-soft:   #3f3d33;
  --ink-faint:  #6f6c5d;
  --line:       #d8d3bf;
  --accent:     #a5ce33;   
  --accent-dark: #78932E;
  --accent-ink: #fffdf6;

  --display: "Helvetica Neue", Helvetica, "Arial Black", Impact, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 62ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 28px 100px;
}

/* Shared micro-label: monospace, uppercase, tracked */
.question__title,
.results__eyebrow,
.profile__label,
.signals__head,
.callout__head {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  /* border-bottom: 2px solid var(--ink); */
  padding-bottom: 26px;
  margin-bottom: 22px;
}

.masthead__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}

.masthead__subtitle {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  /* max-width: var(--measure); */
  margin: 18px 0 0;
}

.masthead__creed {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  /* text-wrap: balance; */
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin: 30px 0 8px;
  padding: 20px 24px;
}

/* --------------------------------------------------------------------------
   Idea field
   -------------------------------------------------------------------------- */

.field { margin-bottom: 44px; }

.field__label {
  display: block;
  clear: left;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: var(--measure);
}

.field__input {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 16px;
  resize: vertical;
  min-height: 116px;
}

.field__input::placeholder { color: var(--ink-faint); }

.field__input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.field__input.is-missing {
  border-color: var(--accent);
  box-shadow: 5px 5px 0 var(--accent);
}

/* --------------------------------------------------------------------------
   Primer — "Before you build" (collapsible)
   -------------------------------------------------------------------------- */

.primer {
  border: 2px solid var(--ink);
  background: var(--paper-2);
  margin: 0 0 44px;
}

.primer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.primer__summary::-webkit-details-marker { display: none; }

.primer__summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* plus (closed) / minus (open) toggle */
.primer__toggle {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.primer__toggle::before,
.primer__toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.primer__toggle::before { inset: 6px 0; height: 2px; }
.primer__toggle::after { inset: 0 6px; width: 2px; }

.primer[open] .primer__toggle::after { display: none; }

.primer__body {
  padding: 16px 18px 20px;
  border-top: 2px solid var(--ink);
  column-count: 2;
  column-gap: 34px;
  column-rule: 2px solid var(--line);
}

.primer__body p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  break-inside: avoid;
}

.primer__body p:last-child { margin-bottom: 0; }

.primer__body p.primer__key {
  color: var(--ink);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Questions
   -------------------------------------------------------------------------- */

.question {
  border: 0;
  /* border-top: 2px solid var(--ink); */
  margin: 0;
  padding: 28px 0 32px;
}

/* Float the legend so it flows inside the fieldset padding instead of
   straddling the border — keeps the kicker tight to its own question. */
.question__legend {
  float: left;
  clear: both;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  line-height: 1;
  margin-bottom: 10px;
}

.question__num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.question__title {
  color: var(--accent-dark);
}

.question__prompt {
  clear: left;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: var(--measure);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.option {
  position: relative;
  flex: 1 1 120px;
  display: flex;
  align-items: top;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 3px 3px;
}

/* keep the native control focusable but out of sight */
.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.option:hover { background: var(--paper); }

.option:has(input:checked) {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 3px 3px;
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.question.is-missing {
  border-left: 5px solid var(--accent);
  margin-left: -22px;
  padding-left: 17px;
}

.question.is-missing .question__title { color: var(--accent); }

.question.is-missing .question__title::after {
  content: " / answer needed";
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Validation message + actions
   -------------------------------------------------------------------------- */

.form-error {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 30px 0 0;
  padding: 14px 16px;
  border: 2px solid var(--accent);
  background: var(--paper-2);
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 48px;
  padding: 14px 28px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
}

.btn:hover { background: var(--ink); color: var(--paper-2); }
.btn--primary:hover { background: var(--ink-faint); }

.btn:active { box-shadow: 0 0 0 var(--ink); }

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Report (results output)
   -------------------------------------------------------------------------- */

.results {
  margin-top: 56px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 28px 26px 34px;
}

.report__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.report__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.report__top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report__brand {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.report__pdf {
  box-shadow: 3px 3px 0 var(--ink);
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* The idea, echoed back at the top of the report */
.report__idea {
  margin: 0 0 26px;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.report__idea-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.report__idea p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

/* Suggested action — the highlighted headline of the report */
.verdict-box {
  margin: 0;
  padding: 22px 24px;
  border: 2px solid var(--ink);
  background: var(--accent);
  box-shadow: 8px 8px 0 var(--ink);
}

.verdict-box__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.verdict-box .results__verdict {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.verdict-box .results__summary {
  margin: 12px 0 0;
  max-width: 60ch;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

/* Evidence profile — reduced to a quiet caption */
.profile-line {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 24px 0 0;
}

.profile-line strong {
  color: var(--ink);
  font-size: 0.85rem;
}

/* Signals — two tables, dimension left, reading right */
.signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  margin: 34px 0 0;
}

.signals__head {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin: 0 0 4px;
}

.signal-table {
  width: 100%;
  border-collapse: collapse;
}

.signal-table th,
.signal-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.signal-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.signal-table td {
  text-align: right;
  padding-left: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.signal-table tr:last-child th,
.signal-table tr:last-child td {
  border-bottom: 0;
}

/* Biggest assumption + next experiment — two cards */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0 0;
}

.card {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 18px 20px;
}

.card__head {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Colophon
   -------------------------------------------------------------------------- */

.colophon {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  line-height: 1.7;
  color: var(--ink-faint);
  margin-top: 72px;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.colophon p { margin: 0; }
.colophon a { color: var(--ink-soft); text-decoration: none; }
/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .page { padding: 44px 18px 72px; }

  .options { flex-direction: column; }

  .option { flex: 1 1 auto; width: 100%; }

  .signals { grid-template-columns: 1fr; gap: 24px; }

  .cards { grid-template-columns: 1fr; gap: 16px; }

  .report__top,
  .report__top-right { flex-wrap: wrap; }

  .primer__body { column-count: 1; column-rule: 0; }

  .actions .btn {
    flex: 1 1 100%;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .results { padding: 22px 18px 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .btn {
    transition: transform .08s ease, box-shadow .08s ease,
                background .12s ease, color .12s ease;
  }

  .btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
  .btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
}

/* --------------------------------------------------------------------------
   Print — "Download as PDF" prints the report only
   -------------------------------------------------------------------------- */

@media print {
  /* Zero the sheet margin, then set our own via padding so the result is
     the same whether the print dialog's "Margins" is Default or None. */
  @page { margin: 0; }

  .masthead,
  .evaluator,
  .colophon,
  .report__pdf { display: none !important; }

  html,
  body { background: #fff; }

  .page {
    max-width: none;
    margin: 0;
    padding: 15mm;
  }

  .results {
    margin: 0;
    border: 0;
    padding: 0;
    background: #fff;
  }

  .verdict-box,
  .report__idea,
  .card,
  .btn { box-shadow: none !important; }

  .signals,
  .cards,
  .verdict-box,
  .report__idea { break-inside: avoid; }

  /* Footer credit on the printed / saved PDF */
  .results::after {
    content: "kill-the-idea.netlify.app";
    display: block;
    margin-top: 34px;
    padding-top: 12px;
    border-top: 2px solid var(--ink);
    font-family: var(--mono);
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
