/*
 * Offer pages (Explore/Service/inspection-ready.html, pv-portfolio-watch.html): linked step cards, a comparison,
 * an example deliverable, an estimator and a request form. Loads after service-page.css and figure-hero.css.
 */

/* ---------- Steps linked to a figure ---------- */
.linked { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; margin-top: 56px; }
.linked .fig-plate { position: sticky; top: 140px; }
.steps { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.step { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius-card); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; text-align: left; font: inherit; color: inherit; width: 100%; }
.step:hover, .step.on { border-color: var(--brand-soft); border-left-color: var(--brand); box-shadow: var(--shadow-card); }
.step.on { transform: translateX(4px); }
.step:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.step .when { font: 700 13px/1.35 var(--font); color: var(--brand); letter-spacing: .02em; }
.step .when small { display: block; margin-top: 4px; font: 600 11px/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.step h3 { font: 600 19px/1.3 var(--font); margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.step .out { margin-top: 10px; font-size: 13.5px; color: var(--validated); font-weight: 600; }

/* ---------- Deliverables and promise ---------- */
.deliver { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; margin-top: 48px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checks li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.checks li::before { content: "✓"; flex: none; color: var(--validated); font-weight: 700; }
.checks li b { color: var(--ink); font-weight: 600; }
.promise { background: var(--deep); color: var(--white); border-radius: var(--radius-card); padding: 32px; }
.promise .eyebrow { color: var(--brand-soft) !important; }
.promise h3 { font: 600 24px/1.25 var(--font); margin: 10px 0 12px; color: var(--white); }
.promise p { color: rgba(255, 255, 255, .8); font-size: 15.5px; }
.promise p + p { margin-top: 12px; }

/* ---------- Comparison: free vs paid ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow-lift); position: relative; }
.plan .badge { align-self: flex-start; font: 600 11.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--tint); color: var(--brand); }
.plan.best .badge { background: var(--brand); color: var(--white); }
.plan h3 { font: 600 24px/1.2 var(--font); margin: 0; }
.plan .sub { color: var(--ink-2); margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: "✓"; flex: none; color: var(--validated); font-weight: 700; }
.plan li.no { color: var(--ink-3); }
.plan li.no::before { content: "–"; color: var(--ink-3); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* ---------- An example deliverable ---------- */
.sample { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.sample-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; background: var(--tint); border-bottom: 1px solid var(--line); font: 600 13px/1.3 var(--font); }
.sample-head .ex { font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--white); color: var(--ink-3); border: 1px solid var(--line); }
.sample-body { padding: 22px; display: grid; gap: 14px; }
.sample-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; font-size: 15px; }
.sample-row dt { font: 600 12px/1.6 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sample-row dd { margin: 0; color: var(--ink); }
.sev { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sev::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sev.high { color: var(--alert); }
.sev.mid { color: #b45309; }
.sev.low { color: var(--validated); }

/* ---------- Estimator ---------- */
.estimate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 48px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-card); }
.estimate label { display: flex; justify-content: space-between; gap: 12px; font: 600 14.5px/1.4 var(--font); margin-bottom: 8px; }
.estimate label output { color: var(--brand); font-variant-numeric: tabular-nums; }
.estimate input[type="range"] { width: 100%; accent-color: var(--brand); }
.estimate .field + .field { margin-top: 22px; }
.estimate .hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.estimate .result-box { background: var(--tint); border-radius: var(--radius-card); padding: 28px; display: grid; align-content: center; gap: 6px; }
.estimate .big { font: 700 clamp(40px, 6vw, 60px)/1 var(--font); letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.estimate .result-box p { margin: 0; color: var(--ink-2); }

/* ---------- Request form ---------- */
.quote { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 40px; box-shadow: var(--shadow-card); }
.quote form { display: grid; gap: 20px; }
.quote .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote label { display: block; font: 500 14px/1.4 var(--font); margin-bottom: 8px; }
.quote .req { color: var(--alert); }
.quote input, .quote select, .quote textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfcbd9; border-radius: var(--radius); font: 400 15px/1.4 var(--font); color: var(--ink); background: var(--white); }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.quote textarea { resize: vertical; min-height: 120px; }
.quote .hp { position: absolute; left: -5000px; }
.quote .note { font-size: 13.5px; color: var(--ink-3); }
.quote .note a { color: var(--brand); }
#req-status:empty { display: none; }
#req-status { padding: 12px 14px; border-radius: var(--radius); font-size: 14.5px; }
#req-status.ok { background: #e3f4f1; color: var(--validated); }
#req-status.err { background: #fbe7ec; color: var(--alert); }
.why { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 18px; }
.why li { display: flex; gap: 14px; }
.why svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--white); color: var(--brand); box-shadow: var(--shadow-card); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why b { display: block; }
.why span { color: var(--ink-2); font-size: 15px; }

@media (max-width: 960px) {
    .linked, .deliver, .versus, .estimate, .quote { grid-template-columns: minmax(0, 1fr); }
    .linked .fig-plate { position: static; }
}
@media (max-width: 600px) {
    .checks, .quote .two { grid-template-columns: 1fr; }
    .step { grid-template-columns: 1fr; gap: 6px; }
    .sample-row { grid-template-columns: 1fr; gap: 2px; }
    .quote-card, .estimate, .plan, .promise { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .step, .step.on { transition: none; transform: none; } }
