/* REFURB RATE - styles (website + extension) */
:root {
  --bg:#f6f7f9; --card:#ffffff; --ink:#1b2430; --muted:#5b6675; --line:#d9dee6;
  --accent:#1f6f54; --accent-ink:#ffffff; --accent-soft:#e3f1eb; --warn:#9a5b00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#12161c; --card:#1c222b; --ink:#e8edf3; --muted:#9aa6b5; --line:#2e3742;
    --accent:#4cc39a; --accent-ink:#0d1f18; --accent-soft:#183329; --warn:#f0b35a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; font-size:16px; background:var(--bg); color:var(--ink); line-height:1.5; overflow-x:hidden; }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 16px; }
h1 { font-size: 1.6rem; line-height:1.2; margin: 8px 0; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
h3 { font-size: 1rem; margin: 0 0 4px; }
a { color: var(--accent); }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; margin:12px 0; }

/* Top bar */
.topbar { position: sticky; top:0; z-index:5; background:var(--card); border-bottom:1px solid var(--line); }
.topbar-inner { max-width:760px; margin:0 auto; padding:10px 16px; display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.logo { font-weight:bold; font-size:1.15rem; color:var(--ink); text-decoration:none; display:flex; align-items:center; gap:8px; }
.logo-mark { width:26px; height:26px; border-radius:6px; background:var(--accent); color:var(--accent-ink); display:inline-grid; place-items:center; font-size:0.85rem; }
.topbar nav { display:flex; gap:14px; flex-wrap:wrap; }
.topbar nav a { text-decoration:none; color:var(--muted); font-size:0.95rem; }
.topbar nav a:hover { color:var(--accent); }

/* Hero */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.hero p.lead { font-size:1.1rem; color:var(--muted); margin: 8px 0 16px; }
.btn-link { display:inline-block; background:var(--accent); color:var(--accent-ink); text-decoration:none; padding:12px 18px; border-radius:6px; font-weight:bold; }
.steps { display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:16px; }
.step { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px; }
.step b { color:var(--accent); display:block; }
.example { border-left: 4px solid var(--accent); }

/* Form */
label { display:block; margin:10px 0 4px; font-weight:bold; }
select, input[type=number], input[type=text], textarea {
  width:100%; padding:10px; font-size:1rem; font-family:inherit;
  border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--ink);
}
textarea { min-height: 80px; resize: vertical; }
.row2 { display:grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.row3 { display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; align-items:end; }
.checks { display:grid; grid-template-columns: 1fr 1fr; gap:6px 12px; margin-top:6px; }
.checks label { font-weight:normal; margin:0; display:flex; gap:6px; align-items:center; cursor:pointer; }
.hint { font-size:0.85rem; color:var(--muted); margin-top:4px; min-height:1.2em; }

button { background:var(--accent); color:var(--accent-ink); border:0; padding:12px 16px; border-radius:6px; font-size:1rem; cursor:pointer; width:100%; margin-top:12px; font-family:inherit; font-weight:bold; }
button:hover { filter: brightness(1.08); }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.secondary { background:transparent; color:var(--accent); border:1px solid var(--accent); }
.btn-row { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }

/* Credits */
.credits-top { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.packs { display:grid; grid-template-columns: repeat(3, 1fr); gap:8px; }
button.pack { background:var(--bg); color:var(--ink); border:1px solid var(--line); display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 6px; margin-top:8px; font-weight:normal; }
button.pack span { color:var(--accent); font-weight:bold; }

/* Results */
.muted { color:var(--muted); font-size:0.9rem; }
.warn { color:var(--warn); font-size:0.9rem; }
#msg { color: var(--warn); }
table { width:100%; border-collapse: collapse; margin-top:8px; }
td, th { text-align:left; padding:6px 4px; border-bottom:1px solid var(--line); }
td.num, th.num { text-align:right; font-variant-numeric: tabular-nums; white-space:nowrap; }
tr.total td { font-weight:bold; }
.range { font-size:1.6rem; font-weight:bold; color:var(--accent); }
.disclaimer { background:var(--accent-soft); border-radius:8px; padding:10px 12px; font-size:0.85rem; margin-top:12px; }
.print-only { display:none; }

/* Pricing */
.plans { display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; }
.plan { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px; }
.plan.featured { border:2px solid var(--accent); }
.plan .price { font-size:1.3rem; font-weight:bold; color:var(--accent); }
.plan p { margin:8px 0 0; }

footer { max-width:760px; margin:0 auto; padding: 8px 16px 28px; text-align:center; }
footer nav { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:8px 0; }
.hidden { display:none !important; }

@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .checks, .row2, .row3, .plans, .btn-row { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr; }
}

/* ---------- Viewing-stage additions ---------- */
.small { font-size: 0.85rem; }
button.small { width:auto; padding:8px 12px; margin-top:0; font-size:0.9rem; }
button.danger { color:#b3261e; border-color:#b3261e; }
button.danger-solid { background:#b3261e; color:#fff; }
@media (prefers-color-scheme: dark) { button.danger { color:#ff8a80; border-color:#ff8a80; } }
.prop-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.three { display:grid; grid-template-columns: repeat(3, 1fr); gap:8px; margin:8px 0; }
.stat { border:1px solid var(--line); border-radius:8px; padding:10px; background:var(--bg); }
.stat strong { display:block; font-size:1.05rem; }
.stat.main { border:2px solid var(--accent); }
.stat.main strong { color:var(--accent); }
table.confirm td { vertical-align:top; }
table.confirm input, table.confirm select, table.confirm textarea { padding:6px; }
tr.section td { font-weight:bold; padding-top:12px; color:var(--muted); }
details summary { cursor:pointer; color:var(--accent); margin:8px 0; }
h4.room { margin:18px 0 6px; color:var(--muted); text-transform:uppercase; font-size:0.8rem; letter-spacing:0.05em; }
.check-item { border:1px solid var(--line); border-radius:8px; padding:10px 12px; margin:8px 0; background:var(--bg); }
.check-head { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
select.status { width:auto; min-width:160px; padding:8px; font-weight:bold; }
select.status-ok { border-color:#2e7d32; color:#2e7d32; }
select.status-problem { border-color:#b3261e; color:#b3261e; }
select.status-needs_checking { border-color:var(--warn); color:var(--warn); }
@media (prefers-color-scheme: dark) { select.status-ok { border-color:#81c784; color:#81c784; } select.status-problem { border-color:#ff8a80; color:#ff8a80; } }
.ask { font-size:0.92rem; margin:6px 0 2px; }
.fields { display:grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap:4px 10px; }
label.small-label { font-weight:normal; font-size:0.85rem; color:var(--muted); margin:6px 0 0; }
label.small-label input { margin-top:2px; padding:7px; font-size:0.95rem; }
label.inline { font-weight:normal; display:flex; gap:8px; align-items:flex-start; }
.photo-group { border-top:1px solid var(--line); padding:10px 0; }
.upload-btn { margin:0; font-weight:bold; color:var(--accent); border:1px solid var(--accent); border-radius:6px; padding:6px 12px; cursor:pointer; position:relative; overflow:hidden; }
.upload-btn input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; }
.upload-btn:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.thumbs { display:grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap:8px; margin-top:8px; }
figure.thumb { position:relative; margin:0; }
figure.thumb img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:6px; display:block; }
figure.thumb .del { position:absolute; top:4px; right:4px; width:26px; height:26px; padding:0; margin:0; border-radius:50%; background:rgba(0,0,0,.65); color:#fff; font-size:16px; line-height:26px; }
.still { margin-top:14px; border-left:4px solid var(--warn); padding-left:12px; }
.still ul { padding-left:18px; margin:6px 0; }
.still li { margin-bottom:6px; }
.saved-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.epc-box { border:1px dashed var(--accent); border-radius:8px; padding:10px 12px; margin:10px 0; background:var(--accent-soft); }
.epc-options { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.epc-option { font-weight:normal; display:flex; gap:8px; align-items:flex-start; margin:0; padding:8px; border:1px solid var(--line); border-radius:6px; background:var(--card); cursor:pointer; }
.epc-option input { margin-top:4px; }
.epc-option.dupe { border-color: var(--warn); }
.epc-record { border:1px solid var(--line); border-radius:8px; padding:10px; margin-top:8px; background:var(--card); }
.area-note.from-epc { color: var(--accent); font-weight:bold; }
.area-note.changed { color: var(--warn); font-weight:bold; }
.sources p { margin: 2px 0; }
.ai-review { border:1px solid var(--accent); border-radius:8px; padding:10px 12px; background:var(--accent-soft); }
.ai-review h4 { margin:14px 0 6px; }
.ai-rooms td { vertical-align:top; }
.cond { font-weight:bold; white-space:nowrap; }
.cond-good, .cond-fair { color:#2e7d32; } .cond-dated { color: var(--warn); } .cond-poor { color:#b3261e; }
.ai-jobs, .ai-items { display:flex; flex-direction:column; gap:4px; }
.ai-job { font-weight:normal; margin:0; display:block; }
.ai-note { color: var(--accent); margin:2px 0; }
.ai-done { border-left:4px solid var(--accent); padding-left:10px; }
#report { display:none; }

@media (max-width: 640px) {
  .steps.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .three, .steps.four { grid-template-columns: 1fr; }
  .prop-row { flex-direction:column; align-items:stretch; }
  button.small { width:100%; }
  select.status { width:100%; }
}

/* PDF report: only #report is printed */
@media print {
  body.printing-report > *:not(#report) { display:none !important; }
  body.printing-report #report { display:block !important; font-size:11pt; color:#000; }
  #report h1 { font-size:16pt; margin:4px 0; }
  #report h2 { font-size:12pt; margin:14px 0 4px; }
  #report .rep-head { font-size:9pt; color:#333; }
  #report .rep-range { font-size:15pt; font-weight:bold; color:#1f6f54; }
  #report table { page-break-inside:auto; }
  #report tr { page-break-inside:avoid; }
  #report .rep-thumbs { display:grid; grid-template-columns: repeat(6, 1fr); gap:6px; }
  #report .rep-thumbs figure { margin:0; page-break-inside:avoid; }
  #report .rep-thumbs img { width:100%; aspect-ratio:1; object-fit:cover; }
  #report figcaption { font-size:7pt; text-align:center; }
  #report .disclaimer { border:1px solid #999; background:#f3f7f5; margin-top:14px; page-break-inside:avoid; }
  #report .still { border-left-color:#9a5b00; }
}


/* ---------- Website pages (simple, roomy) ---------- */
.topbar nav a[aria-current="page"] { color: var(--accent); font-weight: bold; }
.topbar nav a.nav-cta { color: var(--accent-ink); background: var(--accent); padding: 6px 12px; border-radius: 6px; font-weight: bold; }
.home-hero { text-align: center; padding: 56px 0 28px; }
.home-hero h1 { font-size: clamp(2rem, 7vw, 3rem); max-width: 16ch; margin: 0 auto 14px; }
.home-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin: 0 auto 24px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.btn-link.big { padding: 14px 26px; font-size: 1.1rem; }
.btn-plain { color: var(--accent); font-weight: bold; text-decoration: none; padding: 14px 10px; }
.btn-plain:hover { text-decoration: underline; }
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.home-step { text-align: center; padding: 18px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.home-step h2 { font-size: 1.05rem; margin: 10px 0 4px; }
.home-step p { margin: 0; color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: bold; flex: none; }
.home-price { text-align: center; padding: 10px 0 30px; font-size: 1.05rem; }
.page-title { font-size: clamp(1.7rem, 6vw, 2.3rem); margin: 28px 0 6px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.step-card { display: flex; gap: 14px; align-items: flex-start; }
.step-card h2 { margin: 4px 0 6px; }
.step-card p { margin: 0; }
.plain-list { padding-left: 18px; margin: 4px 0; }
.plain-list li { margin-bottom: 6px; }
.center { text-align: center; margin: 24px 0; }
.footer-note { max-width: 50ch; margin: 0 auto 6px; }
@media (max-width: 640px) { .home-steps { grid-template-columns: 1fr; } .home-hero { padding-top: 32px; } }
th.num { white-space: normal; }
@media (max-width: 420px) {
  td.num { white-space: normal; }
  td, th { overflow-wrap: anywhere; }
}
.topbar nav { align-items: center; }
.home-hero h1 { max-width: 20ch; }
@media (max-width: 420px) {
  .topbar nav a[href="privacy.html"] { display: none; }
  .topbar nav { gap: 12px; }
}
.vat-note { font-weight: bold; margin: 8px 0 4px; }


/* ==========================================================
   Colour and layout, based on conversion research:
   - Contrast and isolation drive clicks more than any one hue, so the main
     button is the ONLY amber thing on the page and sits on a navy band.
   - Navy (trust, stability) for text and the hero; green (money, growth)
     stays the brand colour; amber/gold (warm, value) is kept for actions.
   - Every text colour passes WCAG AA contrast; nothing relies on colour alone.
   ========================================================== */
:root { --ink:#14213d; --muted:#4a5568; --bg:#f7f8fa; --navy:#14213d; --navy-2:#1d2d50; --cta:#f2b33d; --cta-hover:#e09f22; --cta-ink:#14213d; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#0f1623; --card:#18212f; --ink:#e8edf3; --navy:#0b1220; --navy-2:#16223a; --cta:#f5bd4f; --cta-hover:#ffcc66; --cta-ink:#14213d; }
}
.btn-link { background: var(--cta); color: var(--cta-ink); box-shadow: 0 2px 0 rgba(0,0,0,.15); transition: background .15s, transform .15s; }
.btn-link:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-link:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; }
.topbar nav a.nav-cta { background: var(--cta); color: var(--cta-ink); }

.hero-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  margin: 0 calc(50% - 50vw); padding: 56px 16px 60px; }
.hero-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-text h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; margin: 0 0 14px; max-width: 16ch; }
.hero-text .lead { color: #c9d3e3; font-size: 1.15rem; max-width: 36ch; margin: 0 0 24px; }
.hero-band .hero-buttons { justify-content: flex-start; }
.hero-band .btn-plain { color: #fff; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: #c9d3e3; font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--cta); font-weight: bold; margin-right: 6px; }

.sample-card { margin: 0; background: #fff; color: #14213d; border-radius: 14px; padding: 20px 22px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.sample-card figcaption { font-size: .9rem; color: #4a5568; display: flex; align-items: center; gap: 8px; }
.tag { background: #e3f1eb; color: #1f6f54; font-weight: bold; font-size: .75rem; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.sample-range { font-size: 1.9rem; font-weight: bold; color: #1f6f54; margin: 8px 0 14px; }
.sample-range span { font-size: 1rem; color: #4a5568; font-weight: normal; }
.bar-row { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 10px; align-items: center; font-size: .92rem; margin: 8px 0; }
.bar { background: #edf1f5; border-radius: 99px; height: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #1f6f54; border-radius: 99px; }
.bar-row b { font-variant-numeric: tabular-nums; }
.sample-note { margin: 12px 0 0; font-size: .82rem; color: #4a5568; }

.home-steps { margin-top: 36px; }
.home-step { box-shadow: 0 1px 2px rgba(20,33,61,.06); }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { text-align: center; }
  .hero-text h1, .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-band .hero-buttons, .ticks { justify-content: center; }
  .hero-band { padding: 36px 16px 40px; }
}
@media (max-width: 420px) {
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .sample-range { font-size: 1.6rem; }
}
/* One amber action per screen: the top-bar link is quieter */
.topbar nav a.nav-cta { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); padding: 5px 12px; }
.topbar nav a.nav-cta:hover { background: var(--accent-soft); }
/* Line the hero up with the logo and menu */
.hero-inner { max-width: 760px; grid-template-columns: 1fr 1fr; gap: 28px; }
.hero-text h1 { font-size: clamp(2rem, 4.6vw, 2.6rem); }
.bar-row { grid-template-columns: auto 1fr auto; }
.bar-row span { white-space: nowrap; }
@media (max-width: 420px) { .bar-row span { white-space: normal; } }
.hero-inner { max-width: 728px; }
.bar-row { grid-template-columns: 10.5em 1fr auto; }
@media (max-width: 420px) { .bar-row { grid-template-columns: 1fr auto; } }
@media (prefers-color-scheme: dark) { :root { --muted: #a3afbf; } }

.home-trust { text-align: center; max-width: 52ch; margin: 8px auto 0; color: var(--muted); }
.home-trust strong { color: var(--ink); }
.about-card p { margin: 0 0 12px; }
.about-card p:last-child { margin-bottom: 0; }
.vat-note { font-size: 1rem; }
@media (max-width: 420px) { .topbar nav a[href="about.html"] { display: none; } }

/* Beta user quotes */
.quotes { margin: 34px 0 10px; }
.quotes h2 { text-align: center; font-size: 1.25rem; margin: 0 0 14px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cta); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.quote blockquote { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.quote figcaption { font-size: .9rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }
@media (max-width: 640px) { .quote-grid { grid-template-columns: 1fr; } }

/* Audit fixes */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--cta); color: var(--cta-ink); padding: 10px 14px; border-radius: 6px; font-weight: bold; text-decoration: none; }
.skip-link:focus { top: 8px; }
.topbar nav a { padding: 10px 2px; display: inline-block; }
.topbar nav a.nav-cta { padding: 8px 12px; }
.plan-name { font-size: 1rem; margin: 0 0 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .btn-link:hover { transform: none; } }

/* Bigger tick boxes and radio buttons, easier to tap */
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
@media (max-width: 420px) { input[type=checkbox], input[type=radio] { width: 24px; height: 24px; } }
@media (max-width: 420px) { td, th { overflow-wrap: break-word; } }
table.confirm th:first-child, table.confirm td:first-child { width: 40px; white-space: nowrap; }

/* Email unlock box */
.unlock { margin-top: 12px; padding: 12px; border: 1.5px dashed var(--cta); border-radius: 10px; background: color-mix(in srgb, var(--cta) 8%, transparent); }
.unlock-title { margin: 0 0 8px; }
.unlock-row { display: flex; gap: 8px; }
.unlock-row input { flex: 1; }
.unlock-row button { width: auto; margin: 0; background: var(--cta); color: var(--cta-ink); }
.unlock p { margin: 6px 0 0; }
#creditsMsgTop { color: var(--accent); font-weight: bold; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 420px) { .unlock-row { flex-direction: column; } .unlock-row button { width: 100%; } }

/* Required marker and the area unit switch */
.req { color: #c0392b; font-weight: bold; }
@media (prefers-color-scheme: dark) { .req { color: #ff8a80; } }
.area-input { display: flex; gap: 6px; }
.area-input input { flex: 1; min-width: 0; }
.area-input select { width: auto; flex: none; padding: 10px 6px; }
input[type=email] { width: 100%; padding: 10px; font-size: 1rem; font-family: inherit; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
input[type=email]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.about-close{font-size:1.15rem;margin:2rem 0 1rem;color:var(--navy)}
@media (prefers-color-scheme:dark){.about-close{color:inherit}}

/* ---- Simple result: one number, confidence, clear breakdown ---- */
.confidence { margin:6px 0 12px; }
.conf-pill { display:inline-block; font-weight:bold; font-size:0.9rem; padding:3px 10px; border-radius:999px; border:1px solid; }
.conf-high .conf-pill { color:#14613f; background:#e1f3ea; border-color:#9fd3b8; }
.conf-medium .conf-pill { color:#7a4a00; background:#fdf1dc; border-color:#f0c983; }
.conf-low .conf-pill { color:#9b1c1c; background:#fde8e8; border-color:#f3b0b0; }
@media (prefers-color-scheme: dark) {
  .conf-high .conf-pill { color:#9fe3c2; background:#163527; border-color:#2f6b4f; }
  .conf-medium .conf-pill { color:#f6cf8a; background:#3a2c12; border-color:#7a5a20; }
  .conf-low .conf-pill { color:#f6a9a9; background:#3c1a1a; border-color:#7a3434; }
}
.breakdown-box { margin:10px 0; border:1px solid var(--line); border-radius:8px; background:var(--card); }
.breakdown-box > summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center;
  min-height:44px; padding:8px 14px; font-weight:bold; color:var(--accent); border-radius:8px; }
.breakdown-box > summary::-webkit-details-marker { display:none; }
.breakdown-box > summary:hover, .breakdown-box > summary:focus-visible { background:var(--accent-soft); }
.breakdown-box > summary .chev { transition:transform .15s; font-size:1.1rem; }
.breakdown-box[open] > summary .chev { transform:rotate(180deg); }
.breakdown-box table { margin:0 14px 12px; width:calc(100% - 28px); }
.more-accuracy { margin:12px 0; padding:10px 12px; border-left:4px solid var(--accent); background:var(--accent-soft); border-radius:6px; }
.optional-tag { display:inline-block; font-size:0.75rem; font-weight:bold; text-transform:uppercase; letter-spacing:.04em;
  padding:2px 8px; border-radius:999px; background:var(--card); color:var(--accent); border:1px solid var(--accent); vertical-align:middle; }
.asbestos-note { margin:12px 0; padding:10px 12px; border:1px dashed var(--line); border-radius:8px; }
.asbestos-note p { margin:0 0 6px; }
/* Viewing checklist: one row per item */
.check-list { display:flex; flex-direction:column; gap:6px; }
.check-row { display:grid; grid-template-columns:minmax(110px,1fr) 140px minmax(120px,1.4fr); gap:8px; align-items:center;
  padding:6px 0; border-bottom:1px solid var(--line); }
.check-row:last-child { border-bottom:0; }
.check-label { font-weight:bold; }
.check-row select, .check-row input { margin:0; width:100%; min-height:44px; }
select.status-not_checked { color:var(--muted); }
select.status-ok { border-color:var(--accent); }
select.status-problem { border-color:#c0392b; }
select.status-unknown { border-color:var(--warn); color:var(--warn); }
@media (max-width:520px) {
  .check-row { grid-template-columns:1fr 130px; }
  .check-row .check-note { grid-column:1 / -1; }
}
.more-accuracy p { margin:0 0 8px; }
.check-row > * { min-width:0; box-sizing:border-box; }
.check-row { grid-template-columns:minmax(110px,1fr) 150px minmax(120px,1.4fr); }
@media (max-width:520px) { .check-row { grid-template-columns:1fr 140px; } }
.check-row select.status { min-width:0; width:100%; }
.check-covered { display:flex; align-items:center; min-height:44px; padding:0 10px; border-radius:6px; font-weight:bold; font-size:0.9rem;
  color:var(--accent); background:var(--accent-soft); }
.size-check, .details-changed { margin:10px 0; padding:10px 12px; border-left:4px solid var(--warn); background:var(--card); border-radius:6px; color:var(--ink); font-size:1rem; }
.size-check p, .details-changed p { margin:0 0 8px; }
.recalc-btn { width:100%; margin-top:8px; }
.recalc-hint { margin:4px 0 0; }

/* ---- Homepage: small hammer slides left to right and turns gold ---- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.transform { max-width:1000px; margin:0 auto; padding:32px 16px 8px; }
.hammer-track { position:relative; height:110px; margin:0 8px 8px; }
.track-line { position:absolute; left:0; right:0; top:78px; height:4px; border-radius:2px;
  background:linear-gradient(90deg, #9aa1ab, #c9a24a 60%, var(--cta)); opacity:.5; }
.hammer-mover { position:absolute; left:0; top:0; width:96px; height:96px; will-change:transform; }
.hammer-svg { width:100%; height:100%; overflow:visible; }
.hammer { transform-origin:110px 120px; }
.beats { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.beat { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; opacity:.55; transition:opacity .3s, border-color .3s; }
.beat.active { opacity:1; border-color:var(--cta); }
.beat-num { font-weight:bold; color:#8a5a00; letter-spacing:.08em; font-size:.85rem; }
@media (prefers-color-scheme: dark) { .beat-num { color:var(--cta); } }
.beat h3 { font-size:1.25rem; margin:4px 0 6px; }
.beat p { color:var(--muted); margin:0 0 8px; }
.beat-link { display:inline-flex; align-items:center; min-height:44px; font-weight:bold; color:var(--accent); }
@media (max-width:760px) {
  .beats { grid-template-columns:1fr; gap:10px; }
  .hammer-track { height:90px; }
  .hammer-mover { width:76px; height:76px; }
  .track-line { top:62px; }
}
@media (prefers-reduced-motion: reduce) { .beat { opacity:1; } }

/* ---- FAQ ---- */
.home-faq { max-width:820px; margin:0 auto; padding:24px 16px; }
.faq-list { display:flex; flex-direction:column; gap:8px; margin:12px 0; }
.faq-item { border:1px solid var(--line); border-radius:10px; background:var(--card); }
.faq-item > summary { list-style:none; cursor:pointer; padding:12px 44px 12px 14px; position:relative; min-height:44px; display:flex; align-items:center; }
.faq-item > summary::-webkit-details-marker { display:none; }
.faq-item > summary::after { content:"+"; position:absolute; right:16px; top:50%; transform:translateY(-50%); font-size:1.4rem; color:var(--accent); }
.faq-item[open] > summary::after { content:"−"; }
.faq-item > summary h2, .faq-item > summary h3 { font-size:1.05rem; margin:0; }
.faq-item > p { margin:0; padding:0 14px 14px; }
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.cost-table { width:100%; min-width:620px; border-collapse:collapse; }
.cost-table caption { text-align:left; font-weight:bold; margin-bottom:6px; }
.cost-table th[scope=row] { font-weight:normal; }
.beta-note { background:var(--accent-soft); border-left:4px solid var(--accent); padding:10px 12px; border-radius:6px; }
/* Phones: hero text and example card stack (this must come after the desktop hero rules) */
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; } }
.legal-line { font-size:.72rem; line-height:1.4; color:var(--muted); margin:14px auto 0; max-width:60ch; text-align:center; }
.plan-cta { display:block; text-align:center; margin-top:10px; }
.plan-cta.disabled { opacity:.6; pointer-events:none; }
.plan .btn-plain.plan-cta { color:var(--accent); border:1.5px solid var(--accent); border-radius:8px; padding:10px; min-height:44px; }
.pack[disabled] { opacity:.7; cursor:not-allowed; }
a.pack { text-decoration:none; color:var(--ink); }
.refresh-box { margin:8px 0; padding:10px 12px; border-left:4px solid var(--cta); background:var(--card); border-radius:6px; }
.refresh-box p { margin:0 0 6px; }
.paid-note { background:#e1f3ea; color:#14613f; border:1px solid #9fd3b8; padding:12px; border-radius:8px; font-weight:bold; }

.app-title { font-size:1.35rem; margin:0 0 .4rem; }
.card-title { font-size: 1rem; margin: 0 0 4px; }
#topupTable a { display:inline-block; padding:8px 14px; min-width:44px; min-height:24px; text-align:center; }
.plan-save { color: var(--accent); font-weight: 700; margin: 6px 0 0; }
.plan-perks { list-style: none; padding: 0; margin: 8px 0 12px; font-size: .9rem; }
.plan-perks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.account-line { margin: 6px 0 10px; color: var(--muted, #555); }
.account-line a { font-weight: 600; }
.ok-note { color: var(--accent); }
.account-line a { display: inline-block; padding: 6px 2px; }
