/* ──────────────────────────────────────────────────────────────────────────
   chore-audit.css - page-scoped styles for /chore-audit.html
   Layers on top of style.css (:root tokens, nav, footer, #matrix-canvas,
   .container, global a:link colour, JetBrains Mono). Mirrors skill-checker.css:
   green-on-black terminal, and a green (#00ff41) fill ALWAYS carries a
   near-black (#001a06) label, including on anchors styled as buttons, which
   need :link/:visited to beat the site-wide a:link rule.
   Laid out phone-first: every grid collapses to one column under 560px, and
   nothing in here relies on a viewport wider than 320px.
   ────────────────────────────────────────────────────────────────────────── */

/* The HTML `hidden` attribute is only `display: none` in the UA stylesheet, so
   ANY author display rule beats it. The money row is a flex item and the
   download button is inline-block, and both are toggled with `el.hidden`: the
   first phone screenshot showed "a year at your own hourly figure" still on
   screen with no figure in front of it. Forced here, once, for this page. */
[hidden] { display: none !important; }

/* ── HERO + FORM ──────────────────────────────────────────────────────── */
.ca-hero { padding: 56px 0 24px; position: relative; z-index: 1; }
.ca-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.ca-kicker {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--green-dim); margin: 0 0 12px;
}
.ca-h1 {
  font-size: clamp(27px, 5vw, 46px); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.5px; margin: 0 0 16px; color: var(--white);
}
.ca-h1-italic { font-style: italic; color: var(--green); text-shadow: 0 0 26px var(--green-glow-strong); }
.ca-sub {
  font-size: clamp(15px, 2.2vw, 19px); color: var(--text); margin: 0 auto 10px;
  max-width: 620px; line-height: 1.55;
}
.ca-byline { font-size: 12px; color: var(--text-dim); margin: 0 auto 26px; max-width: 560px; line-height: 1.6; }
.ca-byline b { color: var(--green-dim); }
.ca-noscript {
  max-width: 620px; margin: 0 auto 24px; padding: 14px 16px; text-align: left;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card);
  font-size: 13px; line-height: 1.6; color: var(--text);
}

.ca-form { max-width: 680px; margin: 0 auto; text-align: left; }
.ca-field { margin-bottom: 18px; }
.ca-field label {
  display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-dim); margin-bottom: 7px; line-height: 1.5;
}
.ca-input, .ca-num, .ca-select, .ca-textarea {
  background: var(--bg-terminal); color: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  font-family: "JetBrains Mono", monospace; font-size: 13px; line-height: 1.5;
  box-sizing: border-box;
}
.ca-input { width: 100%; }
.ca-textarea { width: 100%; min-height: 140px; resize: vertical; line-height: 1.6; }
.ca-textarea::placeholder, .ca-input::placeholder { color: var(--text-muted); }
.ca-num { width: 84px; text-align: center; }
.ca-select { max-width: 100%; }
.ca-input:focus, .ca-num:focus, .ca-select:focus, .ca-textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 0 22px var(--green-glow);
}
.ca-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ca-unit { font-size: 13px; color: var(--text-dim); }
.ca-hint { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.55; }
.ca-error { color: var(--red); font-size: 13px; margin: 0 0 12px; line-height: 1.5; }
.ca-nostore { font-size: 12px; color: var(--text-muted); margin: 10px 0 0; }

/* A green fill always carries a near-black label. :link and :visited are
   named so an anchor styled as a button beats the site-wide a:link colour. */
.ca-btn, .ca-btn:link, .ca-btn:visited {
  display: inline-block; background: var(--green); color: #001a06;
  border: 1px solid var(--green); border-radius: 8px;
  padding: 12px 22px; font-family: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: 0.3px; cursor: pointer; text-decoration: none;
  transition: box-shadow 0.2s, transform 0.1s;
}
.ca-btn:hover { box-shadow: 0 0 26px var(--green-glow-strong); }
.ca-btn:active { transform: translateY(1px); }
.ca-btn:disabled { opacity: 0.55; cursor: default; }
.ca-btn-sm, .ca-btn-sm:link, .ca-btn-sm:visited { padding: 8px 14px; font-size: 12px; }
.ca-btn-ghost, .ca-btn-ghost:link, .ca-btn-ghost:visited {
  background: transparent; color: var(--green); border: 1px solid var(--green-muted);
}
.ca-linkbtn {
  background: none; border: none; color: var(--green-dim); cursor: pointer;
  font: inherit; font-size: 13px; text-decoration: underline; padding: 0;
}

/* ── RESULT ───────────────────────────────────────────────────────────── */
.ca-result { padding: 8px 0 40px; position: relative; z-index: 1; }
.ca-result-inner { max-width: 760px; margin: 0 auto; }
.ca-panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 20px 22px; margin-bottom: 16px;
}
.ca-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-dim); margin: 0 0 12px;
}
.ca-panel-lead { font-size: 14px; color: var(--text); margin: 0 0 14px; line-height: 1.6; }

/* One figure per line, number first: the thing the reader scans for leads. */
.ca-figures { list-style: none; margin: 0; padding: 0; }
.ca-figures li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.ca-figures li:last-child { border-bottom: none; }
/* A number never breaks across lines. At 390px "$1,950" wrapped to "$1,95"
   and "0" on its own line, which reads as a different number entirely (first
   phone screenshot). The label beside it wraps instead. */
.ca-fig {
  font-size: clamp(22px, 4.5vw, 30px); font-weight: 800; color: var(--green);
  line-height: 1.1; white-space: nowrap; word-break: normal;
}
.ca-figk { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.ca-payback {
  margin: 14px 0 0; padding: 11px 13px; border-radius: 8px;
  background: rgba(0, 255, 65, 0.06); border: 1px solid var(--green-dark);
  font-size: 14px; color: var(--white); line-height: 1.55;
}
.ca-figures-note { font-size: 12px; color: var(--text-muted); margin: 12px 0 0; line-height: 1.5; }

.ca-code { color: var(--green); background: var(--bg-terminal); padding: 2px 6px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.ca-md-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ca-md {
  background: var(--bg-terminal); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin: 0; max-height: 380px; overflow: auto;
  font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.6;
  color: var(--text); white-space: pre-wrap; word-break: break-word;
}
.ca-md:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }

.ca-gaps { list-style: none; margin: 0; padding: 0; }
.ca-gaps li {
  position: relative; padding: 8px 0 8px 22px; font-size: 13px;
  color: var(--text); line-height: 1.6; border-bottom: 1px solid var(--border);
}
.ca-gaps li:last-child { border-bottom: none; }
.ca-gaps li::before { content: "\2715"; position: absolute; left: 0; top: 8px; color: var(--red); font-size: 12px; }

.ca-panel-offer { border-color: var(--green-muted); }
.ca-offer-lead { font-size: 15px; color: var(--white); margin: 0 0 14px; line-height: 1.6; }
.ca-offer-lead b { color: var(--green); }

/* Key on the left, value on the right, one pair per row. */
.ca-facts { list-style: none; margin: 0 0 18px; padding: 0; }
.ca-facts li {
  display: grid; grid-template-columns: 112px 1fr; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.ca-facts li:last-child { border-bottom: none; }
.ca-k { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-dim); line-height: 1.7; }
.ca-v { font-size: 13px; color: var(--text); line-height: 1.6; }

.ca-email-form { margin: 0 0 12px; }
.ca-email-form label {
  display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-dim); margin-bottom: 7px;
}
.ca-email { flex: 1 1 220px; min-width: 0; }
.ca-email-msg { font-size: 13px; color: var(--green-dim); margin: 10px 0 0; line-height: 1.55; }
.ca-email-msg.is-bad { color: #ffb454; }
.ca-offer-alt { font-size: 13px; color: var(--text-dim); margin: 0; }
.ca-restart { text-align: center; margin: 18px 0 0; }

/* ── WHY FREE ─────────────────────────────────────────────────────────── */
.ca-how { padding: 10px 0 64px; position: relative; z-index: 1; }
.ca-how-inner { max-width: 680px; margin: 0 auto; }
.ca-how-t { font-size: 14px; color: var(--text); line-height: 1.7; margin: 0 0 10px; }
.ca-how-sig { font-size: 13px; color: var(--green-dim); margin: 0; }

/* ── PHONE ────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .ca-hero { padding: 40px 0 18px; }
  .ca-panel { padding: 16px 14px 18px; }
  .ca-facts li { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .ca-btn { width: 100%; text-align: center; }
  .ca-btn-sm { width: auto; }
  .ca-row { gap: 8px; }
  .ca-num { width: 72px; }
  .ca-select { flex: 1 1 100%; }
  .ca-email { flex: 1 1 100%; }
  .ca-md { font-size: 11px; max-height: 300px; }
}
