/* Save & Pave concept preview — website audit page. Builds on style.css tokens and components. */

/* hero */
.a-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.a-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.a-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,34,41,.96) 0%, rgba(28,34,41,.82) 45%, rgba(28,34,41,.35) 100%); }
.a-hero__inner { position: relative; z-index: 1; padding: 72px 0 56px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; }
.a-hero h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -.02em; line-height: 1.06; margin-bottom: 18px; max-width: 16em; }
.a-hero .lede { font-size: 18px; color: #d9dee3; max-width: 36em; margin: 0 0 26px; }
.a-hero .eyebrow { color: #9fe0b2; }
.a-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: #b9c1ca; margin: 0; padding: 0; list-style: none; }
.a-meta b { color: #fff; font-weight: 600; }
.a-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.a-hero__ctas .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.a-hero__ctas .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.a-score { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 22px; backdrop-filter: blur(6px); }
.a-score__top { display: flex; align-items: baseline; gap: 10px; }
.a-score__num { font: 500 64px/1 var(--font-head); letter-spacing: -.03em; }
.a-score__of { color: #b9c1ca; font-size: 15px; }
.a-score p { margin: 8px 0 0; font-size: 13px; color: #b9c1ca; line-height: 1.5; }
.a-score__bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); margin-top: 14px; overflow: hidden; }
.a-score__bar i { display: block; height: 100%; width: 53%; background: var(--orange); border-radius: 4px; }
@media (max-width: 900px) { .a-hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 40px; } }

/* sticky section nav */
.a-toc { position: sticky; top: 72px; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.a-toc ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.a-toc ol::-webkit-scrollbar { display: none; }
.a-toc a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; font-size: 14px; color: var(--muted); padding: 14px 10px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.a-toc a span { font: 500 12px/1 var(--font-head); color: #9aa3ad; }
.a-toc a:hover { color: var(--ink); }
.a-toc a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--green); font-weight: 600; }
.a-toc a[aria-current="true"] span { color: var(--green); }
@media (max-width: 960px) { .a-toc { top: 62px; } }

/* section scaffolding */
.a-sec { padding: 72px 0; scroll-margin-top: calc(var(--hdr, 72px) + 52px); }
.a-sec--soft { background: var(--bg-soft); }
.a-sec--navy { background: var(--navy); color: #fff; }
.a-head { display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; margin-bottom: 32px; max-width: 860px; }
.a-head .n { grid-row: span 3; font: 500 40px/1 var(--font-head); color: var(--blue); letter-spacing: -.02em; padding-top: 4px; }
.a-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 10px; letter-spacing: -.015em; }
.a-head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 44em; }
.a-sec--navy .a-head p { color: #cdd3da; }
.a-sec--navy .a-head .n { color: #8fc2f0; }
.a-sec--navy .eyebrow { color: #9fe0b2; }
@media (max-width: 640px) { .a-head { grid-template-columns: 1fr; } .a-head .n { grid-row: auto; font-size: 30px; margin-bottom: 8px; } .a-sec { padding: 52px 0; } }

/* evidence labels */
.ev { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ev--ok { background: var(--green-soft); color: var(--green); }
.ev--audit { background: #eef0f3; color: #4a525c; }
.ev--rec { background: #e6f0fa; color: var(--blue-dark); }
.ev--assume { background: #fff4e5; color: #8a4600; }
.ev--fix { background: #fdecec; color: #a12a2a; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 13.5px; color: var(--muted); padding: 14px 16px; border: 1px dashed #c9cfd6; border-radius: 10px; background: #fff; }
.legend > span { display: inline-flex; gap: 8px; align-items: center; }

/* generic cards */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .g2 { grid-template-columns: 1fr; } }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.box h3 { font-size: 20px; margin-bottom: 8px; }
.box p { margin: 0 0 10px; color: var(--muted); }
.box p:last-child { margin-bottom: 0; }
.box .k { font: 500 13px/1 var(--font-head); color: var(--green); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.box--accent { border-top: 4px solid var(--green); }
.box--blue { border-top: 4px solid var(--blue); }
.box--orange { border-top: 4px solid var(--orange); }
.lead-p { font-size: 19px; line-height: 1.6; max-width: 40em; margin: 0 0 28px; }

/* scorecard */
.scores { display: grid; gap: 14px; }
.score-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 52px; gap: 14px; align-items: center; font-size: 15px; }
.score-row .bar { height: 10px; background: #e8eaed; border-radius: 5px; overflow: hidden; }
.score-row .bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--orange); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.score-row .bar i.lo { background: #d64545; }
.score-row .bar i.mid { background: var(--orange); }
.scores.is-in .bar i { width: var(--v); }
.score-row b { font: 500 18px/1 var(--font-head); text-align: right; }
.score-row small { display: block; color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .score-row { grid-template-columns: 1fr 44px; } .score-row .bar { grid-column: 1 / -1; grid-row: 2; } }
.works { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.works li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; }
.works li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.works small { display: block; color: var(--muted); font-size: 13px; }

/* issue list */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button { border: 1px solid #cfd5dc; background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; transition: border-color .15s, background-color .15s; }
.filters button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 600; }
.issues { display: grid; gap: 12px; }
.issue { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.issue[hidden] { display: none; }
.issue[open] { border-color: #c5cbd2; box-shadow: var(--shadow); }
.issue summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; }
.issue summary::-webkit-details-marker { display: none; }
.issue .id { font: 500 14px/1 var(--font-head); color: #a12a2a; background: #fdecec; border-radius: 8px; padding: 8px 0; text-align: center; }
.issue .id.minor { color: #8a4600; background: #fff4e5; }
.issue .id.done { color: var(--muted); background: #eef0f3; }
.issue h3 { font-size: 18px; margin: 0 0 4px; }
.issue .where { font-size: 13.5px; color: var(--muted); }
.issue .chev { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .25s; color: var(--muted); }
.issue[open] .chev { transform: rotate(180deg); }
.issue__body { padding: 0 20px 20px 86px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.issue__body h4 { font: 700 12px/1 var(--font-body); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.issue__body p { margin: 0; font-size: 15px; }
.issue__body code, .a-sec code { font-size: 13px; background: #f1f3f5; padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.issue__note { grid-column: 1 / -1; font-size: 14px; background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; }
.issue .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 760px) {
  .issue summary { grid-template-columns: 44px 1fr 28px; padding: 16px; gap: 12px; }
  .issue__body { padding: 0 16px 18px; grid-template-columns: 1fr; gap: 14px; }
}

/* delivery promises */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.promise { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.promise q { display: block; font: 500 20px/1.3 var(--font-head); quotes: "“" "”"; margin-bottom: 10px; }
.promise small { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* heading tree */
.tree-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 14px; }
.tree-toggle button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.tree-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 600; }
.tree { list-style: none; margin: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; display: grid; gap: 6px; }
.tree[hidden] { display: none; }
.tree li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.tree .h { font: 600 12px/1 var(--font-body); color: #fff; background: var(--blue); border-radius: 5px; padding: 5px 0; text-align: center; }
.tree .h2 { background: #7d8a98; margin-left: 0; }
.tree li.sub { padding-left: 22px; }
.tree li.bad .h { background: #d64545; }
.tree li.bad span:nth-child(2) { color: #a12a2a; }
.tree li.good .h { background: var(--green); }
.tree em { font-style: normal; font-size: 12px; color: var(--muted); }

/* share preview */
.share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.share figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.share .frame { background: #eef0f3; border-radius: 8px; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1.91 / 1; }
.share .frame img { width: 100%; height: 100%; object-fit: cover; }
.share .frame--bad { position: relative; }
.share .frame--bad img { height: 34.3%; width: 100%; object-fit: cover; filter: saturate(.8); }
.share figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.share figcaption b { color: var(--ink); }
@media (max-width: 640px) { .share { grid-template-columns: 1fr; } }

/* three search layers */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.layer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.layer h3 { font-size: 20px; margin: 0; }
.layer .q { font-size: 14px; background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; color: var(--ink); }
.layer .q::before { content: "Someone asks: "; color: var(--muted); }
.layer ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 900px) { .layers { grid-template-columns: 1fr; } }

/* funnel */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: f; }
.funnel li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.funnel li::before { counter-increment: f; content: "0" counter(f); font: 500 22px/1 var(--font-head); color: var(--blue); }
.funnel li.leak { border-color: #f1c38f; background: #fffaf3; }
.funnel b { font-size: 16px; font-family: var(--font-head); font-weight: 500; }
.funnel p { margin: 0; font-size: 13.5px; color: var(--muted); }
.funnel .gap { font-size: 13px; color: #8a4600; font-weight: 600; }
.funnel a { font-size: 13.5px; color: var(--blue); font-weight: 600; text-decoration: none; margin-top: auto; }
.funnel a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .funnel { grid-template-columns: 1fr; } }

/* AI receptionist section */
.compare { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; }
@media (max-width: 960px) { .compare { grid-template-columns: 1fr; } }
.today { background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.today__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075e54; color: #fff; font-size: 14px; }
.today__head b { font-weight: 600; display: block; }
.today__head small { font-size: 12px; opacity: .8; }
.today__head .av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.today__body { background: #ece5dd; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; }
.bub { max-width: 82%; padding: 8px 11px; border-radius: 10px; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bub--me { align-self: flex-end; background: #dcf8c6; }
.bub--them { align-self: flex-start; background: #fff; }
.bub small { display: block; text-align: right; font-size: 10.5px; color: #7b8a8b; margin-top: 2px; }
.bub--wait { align-self: center; background: #fff8d6; color: #6b5800; font-size: 12.5px; box-shadow: none; text-align: center; max-width: 92%; }
.today__foot { padding: 12px 14px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.today__foot b { color: var(--ink); }
.a-sec--navy .box { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #fff; }
.a-sec--navy .box p, .a-sec--navy .box li { color: #cdd3da; }
.a-sec--navy .box h3 { color: #fff; }
.a-sec--navy .legend { background: transparent; border-color: rgba(255,255,255,.25); color: #cdd3da; }
.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.limits li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.limits li > span { width: 30px; height: 30px; border-radius: 8px; background: rgba(249,129,34,.16); color: var(--orange); display: grid; place-items: center; font: 600 14px/1 var(--font-head); }
.limits b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.limits p { margin: 0; font-size: 14.5px; color: #cdd3da; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px; }
.flow b { display: block; font: 500 18px/1.2 var(--font-head); margin-bottom: 6px; color: #fff; }
.flow p { margin: 0; font-size: 14px; color: #cdd3da; }
.flow .st { font: 500 12px/1 var(--font-head); color: #9fe0b2; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 10px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.demo-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .demo-wrap { grid-template-columns: 1fr; } }
.try { display: grid; gap: 10px; }
.try h3 { color: #fff; font-size: 18px; margin: 0; }
.try p { margin: 0; color: #cdd3da; font-size: 14.5px; }
.try ol { margin: 0; padding-left: 1.2em; color: #cdd3da; font-size: 14.5px; display: grid; gap: 6px; }
.try code { background: rgba(255,255,255,.1); color: #fff; }
.boundary { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.boundary th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #9aa3ad; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.boundary td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.1); vertical-align: top; color: #cdd3da; }
.boundary td:first-child { color: #fff; font-weight: 600; width: 22%; }
.boundary .yes { color: #9fe0b2; font-weight: 600; }
.boundary .no { color: #f6b77d; font-weight: 600; }
.table-scroll { overflow-x: auto; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.table-scroll table { min-width: 680px; }

/* time calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 12px 0; }
.calc label { display: grid; gap: 6px; font-size: 13px; color: #cdd3da; font-weight: 600; }
.calc input { width: 100%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; border-radius: 8px; padding: 10px 12px; font: 600 17px/1 var(--font-body); }
.calc input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.calc-out { font-size: 15px; color: #cdd3da; background: rgba(255,255,255,.06); border-radius: 10px; padding: 14px; }
.calc-out strong { font: 500 30px/1 var(--font-head); color: #fff; display: block; margin-bottom: 4px; }
@media (max-width: 520px) { .calc { grid-template-columns: 1fr; } }

/* recommendations */
.recs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.recs th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; background: var(--bg-soft); }
.recs td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.recs td:first-child { width: 110px; }
.recs td b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.recs td small { color: var(--muted); font-size: 13.5px; display: block; }
.recs tr[hidden] { display: none; }
.pri { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.pri--now { background: #fdecec; color: #a12a2a; }
.pri--next { background: #fff4e5; color: #8a4600; }
.pri--later { background: #e6f0fa; color: var(--blue-dark); }
.effort { white-space: nowrap; font-size: 13.5px; color: var(--muted); }
.recs-wrap { overflow-x: auto; border-radius: var(--radius); }
.recs-wrap .recs { min-width: 720px; }

/* next steps */
.steps-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.steps-line::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps-line > li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 0 0 26px; }
.steps-line > li:last-child { padding-bottom: 0; }
.steps-line .dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--green); display: grid; place-items: center; font: 500 15px/1 var(--font-head); color: var(--green); position: relative; z-index: 1; }
.steps-line > li.first .dot { background: var(--green); color: #fff; }
.steps-line .when { font-size: 12.5px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .07em; }
.steps-line h3 { font-size: 20px; margin: 4px 0 6px; }
.steps-line p { margin: 0 0 8px; color: var(--muted); }
.steps-line ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.closing { margin-top: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 14px; padding: 28px; }
.closing h3 { font-size: 24px; margin: 0 0 6px; }
.closing p { margin: 0; color: #cdd3da; max-width: 36em; }
.closing .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.closing .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.small-print { font-size: 13px; color: var(--muted); margin-top: 18px; max-width: 60em; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .score-row .bar i { transition: none; }
  .issue .chev { transition: none; }
}
