/* Easy-mode components.
   Uses the tokens already defined in calc.css — same palette, same type scale,
   so the two tabs feel like one tool rather than two products. */

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 40px;
}

.tabs a {
  display: block;
  padding: 14px 22px 12px;
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  text-decoration: none;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s;
}

.tabs a:hover { color: var(--ink-2); }

.tabs a.on {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.tabs a small {
  display: block;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-top: 2px;
}

.lang { display: flex; gap: 6px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; }
.lang a { color: var(--ink-3); text-decoration: none; padding: 2px 4px; }
.lang a.on { color: var(--red); }

.q { margin: 0 0 44px; }

.q > h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
}

/* The "why this matters" line. Not a tooltip on purpose — a control the reader
   does not understand is worse than one that is not there. */
.q > .why {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 0 18px;
  border-left: 2px solid var(--line-2);
  padding-left: 14px;
}

.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.opts label {
  display: block;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .15s, background .15s;
}

.opts label:hover { border-color: var(--line-2); }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts input:checked + span { color: var(--ink); }
.opts label:has(input:checked) { border-color: var(--red); background: #17110f; }
.opts label span { color: var(--ink-2); }

.opts label:focus-within { outline: 2px solid var(--red-soft); outline-offset: 2px; }

.answer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(transparent, var(--bg) 18%);
  padding: 28px 0 0;
  margin-top: 8px;
}

.answer .card {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 26px 28px;
}

.answer .years {
  font-family: 'Archivo', Impact, system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
}

.answer .to { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

.answer .lever {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.answer .lever b {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.answer .assumed {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.answer .honest {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
  max-width: 70ch;
}

/* Shown while a request is in flight, and when the server is serving a coarser
   grid under load. Never an error — a slowdown the reader can see. */
.answer.busy .years { opacity: .45; transition: opacity .2s; }

.spin {
  display: none;
  width: 12px; height: 12px;
  border: 2px solid var(--line-2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-left: 10px;
}

.answer.busy .spin { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
}

/* Report form — evidence intake under the result. */
.report { margin: 34px 0 60px; border-top: 1px solid var(--line); padding-top: 18px; }

.report > summary {
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
  list-style: none;
  padding: 6px 0;
}
.report > summary::-webkit-details-marker { display: none; }
.report > summary::before { content: '+ '; color: var(--red); }
.report[open] > summary::before { content: '– '; }
.report > summary:hover { color: var(--ink); }
.report > summary:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; }

.report-body { max-width: 62ch; padding: 14px 0 0; }
.report-body h3 { font-size: 18px; margin: 0 0 6px; }

.report .f { display: block; margin: 16px 0; }
.report .f > span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.report .f small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.45; }

.report textarea,
.report input[type=text] {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  resize: vertical;
}

.report textarea:focus,
.report input[type=text]:focus { outline: none; border-color: var(--red); }

.report .snapshot { font-size: 12px; color: var(--ink-3); margin: 10px 0 16px; }

.report .send {
  background: var(--red);
  border: 0;
  border-radius: 3px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  padding: 10px 22px;
  cursor: pointer;
}
.report .send:disabled { opacity: .5; cursor: default; }
.report .send:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; }

.report-status { margin-left: 14px; font-size: 14px; color: var(--ink-2); }

/* Navigation, shared by every page (this file is loaded by the layout). */
.nav-right { display: flex; gap: 14px; align-items: center; }
.navlink { color: var(--ink-2); text-decoration: none; text-transform: uppercase; }
.navlink:hover { color: var(--red); }
.navlink:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 640px) {
  nav .brand b { display: none; }
  .nav-right { gap: 10px; }
}
