:root{
  --ink:#102326;
  --muted:#627074;
  --line:#d9e1df;
  --bg:#f4f1ea;
  --card:#fffdfa;
  --panel:#e8f1ee;
  --accent:#0f6b63;
  --accent-dark:#0f3d3e;
  --amber:#d8982f;
  --blue:#2d6073;
  --danger:#9b2c2c;
  --shadow:0 18px 45px rgba(20,38,38,.11);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 12% 0%,rgba(216,152,47,.16),transparent 28rem),
    linear-gradient(180deg,#fbfaf6 0%,var(--bg) 42%,#eef4f2 100%);
  color:var(--ink);
}
a{color:inherit}
.topbar{
  min-height:68px;
  background:rgba(255,253,250,.92);
  border-bottom:1px solid rgba(16,35,38,.1);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 max(18px,calc((100vw - 1120px)/2));
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(16px);
}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:850;font-size:1.08rem}
.brand b{color:var(--accent)}
.brand-mark{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:8px;
  color:#fff;
  background:linear-gradient(135deg,var(--accent-dark),var(--accent));
  box-shadow:0 8px 20px rgba(15,107,99,.24);
  font-size:.78rem;
}
nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
nav a{text-decoration:none;color:#405356;font-size:.93rem;font-weight:720;padding:9px 10px;border-radius:8px}
nav a:hover{background:#eef4f2;color:var(--accent-dark)}
.wrap{max-width:1120px;margin:0 auto;padding:28px 18px 62px}
.page-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
h1,h2,h3{line-height:1.08;letter-spacing:0}
h1{margin:0;font-size:2rem}
h2{margin-top:0;font-size:1.25rem}
h3{margin-top:0}
p{line-height:1.58}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{
  background:var(--card);
  border:1px solid rgba(16,35,38,.1);
  border-radius:8px;
  padding:18px;
  box-shadow:0 8px 26px rgba(20,38,38,.06);
}
.metric{font-size:2.15rem;font-weight:860;margin-top:8px;color:var(--accent-dark)}
.muted{color:var(--muted)}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:8px;
  background:var(--accent);
  color:#fff;
  min-height:44px;
  padding:11px 16px;
  font-weight:780;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(15,107,99,.18);
}
.btn:hover{background:#0d5f58}
.btn.secondary{background:rgba(255,255,255,.92);color:var(--ink);border:1px solid rgba(16,35,38,.14);box-shadow:none}
.btn.danger{background:var(--danger)}
.btn.full{width:100%}
.btn.small{min-height:38px;padding:8px 13px}
.icon-btn{width:34px;height:34px;border:1px solid rgba(16,35,38,.13);border-radius:8px;background:#fff;color:var(--muted);cursor:pointer}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}
label{font-weight:760;font-size:.93rem;color:#1c3436}
input,select,textarea{
  width:100%;
  padding:12px 13px;
  border:1px solid #cfd9d6;
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  box-shadow:inset 0 1px 0 rgba(16,35,38,.03);
}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(15,107,99,.16);border-color:var(--accent)}
textarea{min-height:110px}
.table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.table th,.table td{padding:13px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.table th{background:#f1f6f4;font-size:.86rem;color:#425356}
.table tr:last-child td{border-bottom:0}
.badge{display:inline-block;padding:4px 9px;border-radius:999px;background:#eef1f0;font-weight:780;font-size:.78rem}
.badge.sale{background:#e7eff3;color:#234f61}
.badge.rental{background:#dff1ec;color:#0f5b54}
.flash{padding:12px 14px;border-radius:8px;margin-bottom:14px;background:#e4f5ee;border:1px solid #c5e7db}
.flash.error{background:#fdeaea;color:#842626;border-color:#f1caca}
.landing .wrap{padding-top:22px}
.hero{
  min-height:560px;
  display:flex;
  align-items:flex-end;
  padding:44px;
  border-radius:8px;
  overflow:hidden;
  position:relative;
  background:
    linear-gradient(90deg,rgba(11,31,33,.88) 0%,rgba(11,31,33,.72) 34%,rgba(11,31,33,.28) 64%,rgba(11,31,33,.08) 100%),
    url("hero-handoveriq.jpg") center right/cover no-repeat;
  box-shadow:var(--shadow);
}
.hero:after{content:"";position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(180deg,transparent,rgba(11,31,33,.68));pointer-events:none}
.hero-copy{position:relative;z-index:1;max-width:650px;color:#fff}
.eyebrow{
  display:inline-flex;
  margin:0 0 14px;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#f5dfb8;
  font-size:.82rem;
  font-weight:820;
  text-transform:uppercase;
}
.hero h1{font-size:4.15rem;margin:0 0 16px;max-width:760px}
.hero p:not(.eyebrow){font-size:1.14rem;color:#e9f2f0;max-width:620px}
.hero .btn.secondary{background:#fff;color:var(--accent-dark)}
.feature-grid{margin-top:18px}
.feature-card{position:relative;overflow:hidden}
.feature-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--accent),var(--amber))}
.feature-icon{display:inline-flex;align-items:center;height:28px;padding:0 9px;border-radius:999px;background:#e2f2ed;color:#0f5b54;font-size:.72rem;font-weight:860;margin-bottom:18px}
.feature-icon.sale{background:#e8eff3;color:var(--blue)}
.feature-icon.lock{background:#fff1d8;color:#8a5b0c}
.stat-card{background:linear-gradient(180deg,#fffdfa,#f2f7f5);position:relative;min-height:118px}
.stat-card:after{content:"";position:absolute;right:16px;bottom:16px;width:42px;height:42px;border-radius:8px;background:linear-gradient(135deg,rgba(15,107,99,.16),rgba(216,152,47,.2))}
.quick-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fffdfa,#e8f1ee)}
.quick-panel h2{margin:10px 0 4px;font-size:1.45rem}
.quick-panel p{margin:0}
.quick-alt{margin-top:12px;text-align:center}
.photo-step{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}
.photo-step.done{background:#effaf5;border-color:#c7e8dc}
.photo-pick{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 13px;border:1px solid rgba(16,35,38,.14);border-radius:8px;background:#fff;color:var(--accent-dark);font-weight:780;cursor:pointer}
.photo-pick input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.upload-all-bar{position:sticky;bottom:14px;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px;border:1px solid rgba(16,35,38,.13);border-radius:8px;background:#fffdfa;box-shadow:0 16px 40px rgba(16,35,38,.18)}
.upload-all-bar[hidden]{display:none}
.upload-all-bar span{font-weight:780;color:var(--accent-dark)}
.thumb{width:120px;height:84px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.finding{border-left:4px solid var(--amber);padding-left:14px}
.locked{background:#eef7f4;border:1px solid #c6e6dc;padding:12px 14px;border-radius:8px}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.compare figure{margin:0}
.compare img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.report-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;background:linear-gradient(135deg,#fffdfa,#e9f2ef)}
.report-hero h2{font-size:1.8rem;margin:12px 0 6px}
.report-metrics{display:grid;grid-template-columns:auto auto;gap:4px 10px;min-width:160px}
.report-metrics strong{font-size:1.8rem;color:var(--accent-dark);line-height:1}
.report-metrics span{color:var(--muted);font-size:.9rem}
.hash-text{word-break:break-all}
.report-list p{padding-bottom:12px;border-bottom:1px solid var(--line)}
.report-list p:last-child{padding-bottom:0;border-bottom:0}
.report-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.report-photo figcaption{margin-top:10px}
.report-photo figcaption span{font-size:.78rem;word-break:break-all}
.signature-pad{border:1px dashed #8da3a1;border-radius:8px;background:#fff;width:100%;height:180px;touch-action:none}
.install-card{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  z-index:50;
  width:min(94vw,520px);
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:8px;
  background:#fffdfa;
  border:1px solid rgba(16,35,38,.12);
  box-shadow:0 18px 50px rgba(16,35,38,.22);
}
.install-card[hidden]{display:none}
.install-card div{display:grid;gap:2px;flex:1}
.install-card span{color:var(--muted);font-size:.88rem}
footer{text-align:center;color:var(--muted);padding:30px 15px 45px;font-size:.88rem}
@media(min-width:900px){h1{font-size:2.45rem}}
@media(max-width:760px){
  .topbar{min-height:62px;align-items:flex-start;padding-top:12px;padding-bottom:12px}
  nav a:not(:last-child){display:none}
  .grid,.grid.two,.form-grid,.compare{grid-template-columns:1fr}
  .table{display:block;overflow-x:auto}
  .wrap{padding-top:18px}
  .page-title{align-items:flex-start}
  .quick-panel{align-items:stretch;display:grid}
  .hero{
    min-height:520px;
    padding:28px 20px;
    background:
      linear-gradient(180deg,rgba(11,31,33,.42) 0%,rgba(11,31,33,.28) 32%,rgba(11,31,33,.88) 100%),
      url("hero-handoveriq.jpg") center/cover no-repeat;
  }
  .hero h1{font-size:2.72rem}
  .hero p:not(.eyebrow){font-size:1.03rem}
  .photo-step{grid-template-columns:1fr}
  .photo-pick{width:100%}
  .upload-all-bar{align-items:stretch;flex-direction:column}
  .thumb{width:100%;height:auto;aspect-ratio:4/3}
  .report-hero{display:grid}
  .report-metrics{grid-template-columns:auto 1fr}
  .btn{min-height:44px}
}
@media(max-width:420px){
  .brand span:last-child{font-size:1rem}
  .hero{min-height:500px}
  .hero h1{font-size:2.32rem}
  .install-card{align-items:flex-start}
}
@media print{
  .topbar,.actions,.btn,footer,.no-print,.install-card{display:none!important}
  .wrap{max-width:none;padding:0}
  .card{box-shadow:none;break-inside:avoid}
  body{background:#fff}
}
