/*
 * value.css: the ROI calculator on /math, and the "what you get" and
 * "who it helps" blocks on /pricing (LL-4899). Loaded after site.css and
 * built only from its tokens, so it matches the rest of the site without
 * adding rules to site.css.
 *
 * Phone first: one column at 390px, every input and link at least 44px
 * tall, nothing with a fixed width, nothing animated.
 */

.rc-hero .lede { margin-top: 18px; }
.rc-hero .hero-ctas { margin-top: 28px; }
.rc-hero .btn, .vx-actions .btn { min-height: 48px; justify-content: center; }

/* ── Calculator ── */
.rc { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.rc-form { display: grid; gap: 18px; }
.rc-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; background: var(--surface); min-width: 0; }
.rc-form legend { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); padding: 0 6px; }
.rc-form .rc-legend-note { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.rc-field { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rc-field:first-of-type { border-top: 0; }
.rc-field label { font-weight: 600; color: var(--ink); font-size: 15.5px; line-height: 1.35; }
.rc-field input[type="number"] {
  width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--bg, #060807); color: var(--ink);
  font-family: var(--font-mono); font-size: 16px; text-align: right;
}
.rc-field input[type="number"]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
/* LL-4941: venue type is a structured choice; the select spans the row so
   its labels are readable at 390px. */
.rc-field select {
  grid-column: 1 / -1; width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--bg, #060807); color: var(--ink); font: inherit; font-size: 16px;
}
.rc-field select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.rc-field input[type="number"]::placeholder { color: var(--muted); }
.rc-row em { font-style: normal; color: var(--muted); font-size: 13px; }
.rc-board[data-verdict="breakeven"] .rc-verdict { color: var(--ink); }
.rc-field .rc-hint { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.rc-check { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.rc-check input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.rc-check span em { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.rc-reset { min-height: 44px; justify-self: start; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); padding: 0 18px; font: inherit; cursor: pointer; }
.rc-reset:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.rc-board { display: grid; gap: 16px; min-width: 0; }
.rc-mode { font-size: 14px; color: var(--ink); border-left: 3px solid var(--green); padding: 8px 0 8px 12px; background: rgba(29, 185, 84, 0.06); border-radius: 0 10px 10px 0; }
.rc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); min-width: 0; }
.rc-card h2 { font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
.rc-card .rc-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rc-card .rc-tag.is-green { color: var(--green); }
.rc-rows { margin-top: 12px; display: grid; }
.rc-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.rc-row strong { font-family: var(--font-mono); color: var(--ink); font-size: 15.5px; text-align: right; }
.rc-row.is-total { color: var(--ink); font-weight: 600; }
.rc-row.is-total strong { color: var(--green); font-size: 20px; }
.rc-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 6vw, 48px); line-height: 1.05; color: var(--green); margin-top: 6px; }
.rc-big small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--muted); margin-top: 6px; }
.rc-board[data-verdict="short"] .rc-verdict { color: var(--ink); }
.rc-verdict { margin-top: 12px; font-size: 15px; color: var(--green); }
.rc-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.rc-how { margin-top: 8px; }
.rc-how h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
.rc-how ol, .rc-how ul { display: grid; gap: 10px; padding-left: 20px; color: var(--muted); max-width: 72ch; }
.rc-how li strong { color: var(--ink); }
.rc-how code { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); }
.rc-how a, .rc-note a, .vx a:not(.btn) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ── What you get / who it helps (pricing) ── */
.vx { padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.vx-head { max-width: 760px; margin-bottom: 24px; }
.vx-head h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; margin: 10px 0 12px; }
.vx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.vx-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: rgba(255, 255, 255, 0.025); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vx-card h3 { font-size: 19px; line-height: 1.3; }
.vx-card .vx-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.vx-card ul { display: grid; gap: 8px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.vx-card ul li strong { color: var(--ink); }
.vx-card .vx-cost { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
.vx-card .vx-cost b { color: var(--green); font-weight: 600; }
.vx-terms { display: grid; gap: 10px; max-width: 820px; margin-top: 22px; padding-left: 0; list-style: none; }
/* Block, not grid: a term mixes <strong>, text and links, and a grid would
   make each of those its own column item. */
.vx-terms li { position: relative; padding-left: 32px; color: var(--muted); font-size: 15.5px; }
.vx-terms li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 7px; height: 13px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.vx-terms li strong { color: var(--ink); }
.vx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 900px) {
  .rc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rc-field { grid-template-columns: minmax(0, 1fr) 96px; }
  .rc-hero .btn, .vx-actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
}
