/* FIN-819 v3 — shared styles for the four free tools (conversion build).
   Uses the tokens from /shared.css. */

.fvv { color: var(--green); font-weight: 800; }
.wm { font-weight: 800; white-space: nowrap; }

.tool-hero { padding: 3.2rem 0 1.6rem; text-align: center; }
.tool-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin: 0.8rem 0; }
.tool-hero p { color: var(--muted); max-width: 44rem; margin: 0 auto; font-size: 1.08rem; }
.tool-hero .meta { margin-top: 1rem; color: var(--faint); font-size: 0.9rem; }

.panel { background: var(--navy-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 2rem; }
.panel + .panel { margin-top: 1.25rem; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 860px; margin: 0 auto 3rem; }

/* questions */
.q { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.q:last-of-type { border-bottom: 0; }
.q-title { font-weight: 600; margin-bottom: 0.7rem; }
.q-title .num { color: var(--accent); margin-right: 0.4rem; }
.opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 0.55rem 0.95rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-size: 0.92rem; transition: all .15s var(--ease); }
.opt input:checked + span { background: rgba(0,229,160,0.14); border-color: var(--accent); color: var(--white); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.45rem; }
.field .hint { color: var(--faint); font-size: 0.85rem; margin-top: 0.3rem; }
.field input[type=number], .field select, .lead input, .lead select {
  width: 100%; padding: 0.8rem 0.95rem; background: var(--navy); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; }
.field input:focus, .field select:focus, .lead input:focus, .lead select:focus { outline: none; border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 0 0 1.4rem; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.form-error { color: var(--danger); margin-top: 0.8rem; font-weight: 600; display: none; }

.btn-block { display: block; width: 100%; text-align: center; margin-top: 1.4rem; padding: 1rem 1.2rem; font-size: 1.05rem; border: 0; cursor: pointer; }

/* results */
.results { display: none; }
.results.show { display: block; }
.verdict { display: grid; grid-template-columns: 220px 1fr; gap: 1.8rem; align-items: center; }
.verdict .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 99px; margin-bottom: 0.7rem; }
.tag.bad { background: rgba(255,107,97,0.14); color: var(--danger); }
.tag.warn { background: rgba(255,184,77,0.14); color: #FFB84D; }
.tag.ok { background: rgba(0,229,160,0.14); color: var(--accent); }
.verdict h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.7rem; }
.verdict p { color: var(--muted); }
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.gauge-box { text-align: center; background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 0.8rem 0.9rem; }
.gauge-box .lbl { font-weight: 600; margin-top: 0.3rem; }
.gauge-box .sub { color: var(--faint); font-size: 0.82rem; }
.gauge svg { width: 100%; max-width: 220px; margin: 0 auto; }

.section-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.3rem; }
.section-sub { color: var(--muted); margin-bottom: 1.2rem; font-size: 0.95rem; }
.cost-table { width: 100%; border-collapse: collapse; }
.cost-table td { padding: 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 1rem; }
.cost-table .why { display: block; color: var(--faint); font-size: 0.82rem; font-weight: 400; margin-top: 0.2rem; }
.cost-table tr.total td { border-bottom: 0; font-size: 1.1rem; color: var(--white); }
.bad-num { color: var(--danger); }
.good-num { color: var(--accent); }

.gaps { list-style: none; }
.gaps li { display: flex; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.gaps li:last-child { border-bottom: 0; }
.gaps .ic { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; }
.gaps .ic.no { background: rgba(255,107,97,0.16); color: var(--danger); }
.gaps .ic.partial { background: rgba(255,184,77,0.16); color: #FFB84D; }
.gaps .fix { display: block; color: var(--accent); font-size: 0.86rem; margin-top: 0.2rem; }

/* ROI */
.roi { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem; }
.roi .col { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem; }
.roi .col.fv { border-color: rgba(0,229,160,0.45); box-shadow: 0 0 0 1px rgba(0,229,160,0.12) inset; }
.roi .col h4 { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-bottom: 0.4rem; }
.roi .big { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
.roi .col p { color: var(--faint); font-size: 0.85rem; margin-top: 0.3rem; }
.roi-callout { margin-top: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.3); font-size: 1.05rem; }
.roi-callout b { color: var(--accent); }
.slider { margin: 1rem 0 0.2rem; }
.slider .row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 0.4rem; gap: 1rem; }
.slider .row output { color: var(--accent); white-space: nowrap; }
.slider input[type=range] { width: 100%; accent-color: var(--accent); }
.slider .hint { color: var(--faint); font-size: 0.8rem; }
details.assume { margin-top: 1rem; color: var(--muted); font-size: 0.86rem; }
details.assume summary { cursor: pointer; color: var(--ink); font-weight: 600; }
details.assume ul { margin: 0.6rem 0 0 1.1rem; }
details.assume li { margin: 0.25rem 0; }

/* CTA */
.cta-card { background: linear-gradient(135deg, rgba(0,229,160,0.16), rgba(29,191,115,0.06)); border: 1px solid rgba(0,229,160,0.45); border-radius: var(--radius); padding: 2rem; text-align: center; }
.cta-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.cta-card p { color: var(--muted); max-width: 38rem; margin: 0 auto; }
.cta-card .btn { margin-top: 1.2rem; padding: 1rem 1.8rem; font-size: 1.08rem; }
.cta-card .fine { margin-top: 0.8rem; font-size: 0.82rem; color: var(--faint); }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; margin-top: 1rem; font-size: 0.9rem; color: var(--ink); }
.checks span::before { content: '✓ '; color: var(--accent); font-weight: 800; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(6,15,34,0.96); border-top: 1px solid rgba(0,229,160,0.35); padding: 0.75rem 1rem; display: none; backdrop-filter: blur(8px); }
.sticky-cta.show { display: block; }
.sticky-cta .inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sticky-cta .msg { font-weight: 600; }
.sticky-cta .msg b { color: var(--danger); }
.sticky-cta .btn { white-space: nowrap; }
body.has-sticky { padding-bottom: 5rem; }

/* next tools */
.next-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.next-tools a { display: block; background: var(--navy); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 1.1rem; transition: border-color .15s; }
.next-tools a:hover { border-color: var(--accent); }
.next-tools b { display: block; margin-bottom: 0.3rem; }
.next-tools span { color: var(--muted); font-size: 0.88rem; }
.next-tools em { display: block; font-style: normal; color: var(--accent); font-size: 0.85rem; margin-top: 0.5rem; font-weight: 600; }

/* lead form */
.lead .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.lead label { display: block; font-size: 0.85rem; font-weight: 600; margin: 0.8rem 0 0.35rem; }
.lead .status { margin-top: 0.8rem; font-weight: 600; }
.lead .status.ok { color: var(--accent); }
.lead .status.err { color: var(--danger); }
.lead .note { color: var(--faint); font-size: 0.8rem; margin-top: 0.6rem; }

.src { color: var(--faint); font-size: 0.78rem; margin-top: 1rem; }

@media (max-width: 760px) {
  .verdict { grid-template-columns: 1fr; text-align: center; }
  .roi, .two, .lead .row2 { grid-template-columns: 1fr; }
  .panel { padding: 1.3rem; }
  .sticky-cta .msg { font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .gauges { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 0.5rem; }
  .gauge-box { padding: 0.6rem 0.3rem; }
  .gauge-box .sub { display: none; }
  .gauge-box .lbl { font-size: 0.78rem; }
  .sticky-cta .inner { justify-content: center; }
  .sticky-cta .msg { display: none; }
  .sticky-cta .btn { width: 100%; text-align: center; }
  body.has-sticky { padding-bottom: 4.5rem; }
}

/* ---- phone (<600px) ---- */
@media (max-width: 600px) {
  .tool-hero { padding: 2.2rem 0 1rem; }
  .panel { padding: 1.1rem; }
  .cta-card { padding: 1.5rem 1.1rem; }
  .field input[type=number], .lead input, .lead select { min-height: 44px; }
  .roi-callout { font-size: 1rem; }
}
