/* SIGLIFT landing pages + free tools (loaded only on code-defined landing pages, see inc/sl-landing.php).
   Builds on the tokens and components in sl.css. */

/* ---------- landing page content ---------- */
.lp-facts { margin-bottom: 28px; }
.lp-facts h2 { margin-bottom: 14px; }
.lp-price-from { margin-bottom: 20px; }
.lp .prose .table-wrap { margin: 1.2em 0 1.4em; }
.lp .prose .table-wrap table { display: table; min-width: 540px; margin: 0; font-size: var(--fs-sm); }
.lp .prose .table-wrap th, .lp .prose .table-wrap td { border: 0; border-bottom: 1px solid var(--line); padding: 11px 14px; }
.lp .prose .table-wrap thead th { background: var(--navy); color: #fff; font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; }
.lp .prose .table-wrap tbody tr:last-child td { border-bottom: 0; }
.lp .prose code { font-size: .92em; background: var(--sky-100); color: var(--navy); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.lp .prose .inline-cta .btn-row { gap: 8px; }
.lp .prose .products { margin: 1.2em 0 1.6em; }
.lp .prose .products ul li::before { display: none; }
.lp .prose .products ul li { padding-left: 0; }
.lp .prose .products h3 { margin: 0 0 .4em; }
.lp .prose .products .spec-list li { padding-left: 0; }
.lp .prose .products a { text-decoration: none; }
.lp .inline-cta .btn-row .btn { flex: 0 0 auto; }
@media (max-width: 520px) { .lp .inline-cta .btn-row .btn { flex: 1 1 100%; } }

/* ---------- tool shell ---------- */
.lp-tool-wrap { background: var(--bg-soft); }
.tool { max-width: 980px; margin: 0 auto; padding: clamp(20px, 3.2vw, 34px); }
.tool:hover { transform: none; }
.tool-head { margin-bottom: 18px; }
.tool-head .eyebrow { margin-bottom: 10px; }
.tool-head h2 { margin-bottom: 6px; }
.tool-head p { margin: 0; }
.tool-form { gap: 18px; }
.tool-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tool-form legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin-bottom: 10px; font-weight: 600; color: var(--ink); font-size: var(--fs-body); }
.tool-form legend b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: var(--fs-label); }
.tool-form legend small { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.tool-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tool-opts.ops { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .tool-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-opt { position: relative; display: block; cursor: pointer; min-width: 0; }
.tool-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tool-opt span { display: block; height: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.tool-opts.ops .tool-opt span { text-align: center; }
.tool-opt small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: var(--fs-label); }
.tool-opt:hover span { border-color: var(--blue-300); }
.tool-opt input:checked + span { border-color: var(--blue-600); background: var(--sky-50); box-shadow: 0 0 0 3px var(--sky-100); }
.tool-opt span { position: relative; padding-right: 28px; }
.tool-opt input:checked + span::after { content: "✓"; position: absolute; top: 10px; right: 12px; color: var(--blue-600); font-weight: 700; }
.tool-opts.ops .tool-opt span { padding-right: 14px; }
.tool-opts.ops .tool-opt input:checked + span::after { position: static; margin-left: 6px; }
.tool-opt input:focus-visible + span { outline: 3px solid var(--blue-300); outline-offset: 2px; }
.tool-more { border: 1px dashed var(--sky-200); border-radius: var(--radius-sm); padding: 10px 14px; }
.tool-more summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.tool-more[open] summary { margin-bottom: 12px; }
.tool-form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .tool-form .row2 { grid-template-columns: minmax(0, 1fr); } }
.tool-form .row2[hidden] { display: none; }
.tool-form > .btn { justify-self: start; }
@media (max-width: 520px) { .tool-form > .btn { justify-self: stretch; white-space: normal; } }
.tool-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 480px; }
.unit-field { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.unit-field:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(11, 106, 168, .14); }
.unit-field input { flex: 1; min-width: 0; min-height: 46px; padding: 11px 14px; border: 0; font-size: var(--fs-body); color: var(--ink); background: transparent; }
.unit-field input:focus { outline: 0; }
.unit-field span { display: grid; place-items: center; padding: 0 12px; background: var(--bg-soft); border-left: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }

/* ---------- results ---------- */
.tool-result { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.tool-result:focus { outline: 0; }
.tool-result h3 { margin-bottom: 4px; }
.tool-result h4 { font-size: var(--fs-h4); margin: 22px 0 10px; }
.tr-main { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 14px; }
@media (max-width: 560px) { .tr-main { grid-template-columns: minmax(0, 1fr); } }
.tr-img { display: grid; place-items: center; background: var(--sky-50); border-radius: var(--radius); padding: 12px; aspect-ratio: 1; }
.tr-img img { max-height: 130px; width: auto; object-fit: contain; }
@media (max-width: 560px) { .tr-img { aspect-ratio: auto; max-width: 220px; } }
.tr-specs { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: var(--fs-sm); }
.tr-specs strong { color: var(--ink); }
.fit { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.fit span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-label); font-weight: 600; }
.fit .strong { background: #e9f8ef; color: #17693a; }
.fit .partial { background: #fff5dc; color: #7a5600; }
.tr-why { font-size: var(--fs-sm); margin-bottom: 8px; }
.tr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.tr-list li { display: flex; gap: 10px; align-items: flex-start; }
.tr-list .ic { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; color: var(--wa); }
.tr-list a { font-weight: 600; }
.tr-alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .tr-alts { grid-template-columns: minmax(0, 1fr); } }
.tr-alt { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: var(--fs-sm); color: var(--ink-2); }
.tr-alt strong { display: block; color: var(--navy); }
.tr-alt:hover { border-color: var(--blue-600); }
.tr-notes { display: grid; gap: 8px; margin-top: 16px; }
.tr-note { font-size: var(--fs-sm); background: #fff8e6; border-left: 4px solid #e3b505; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 14px; color: var(--ink); }
.tr-note.bad { background: #fdecec; border-left-color: #d63b3b; }
.tr-note.good { background: #e9f8ef; border-left-color: #1a9d55; }
.tr-actions { margin-top: 20px; }
.tr-actions .btn { flex: 0 1 auto; }
@media (max-width: 520px) { .tr-actions .btn { flex: 1 1 100%; } }
.tr-disclaimer { margin: 12px 0 0; }

/* ---------- signal meter ---------- */
.meter-block + .meter-block { margin-top: 18px; }
.meter-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.meter-top strong { color: var(--ink); }
.meter-val { font-size: var(--fs-h3); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.meter { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #d63b3b 0 28.6%, #ef7d22 28.6% 42.9%, #e3b505 42.9% 57.1%, #6bbf3b 57.1% 71.4%, #1a9d55 71.4% 100%); }
.meter .pin { position: absolute; top: -6px; width: 6px; height: 26px; border-radius: 3px; background: var(--ink); border: 2px solid #fff; transform: translateX(-50%); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.meter-scale { position: relative; height: 18px; margin-top: 6px; font-size: var(--fs-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.meter-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.meter-scale span:first-child { transform: none; }
.meter-scale span:last-child { transform: translateX(-100%); }
