/* Walkthrough — field clipboard / property-management aesthetic
   Walkthrough. Not MatchRate. Not a tax product. */

:root {
  --ink: #1c1916;
  --ink-soft: #3a342c;
  --muted: #6b6458;
  --paper: #f3eee4;
  --paper-2: #e8dfd0;
  --manila: #ead9b8;
  --card: #fffcf7;
  --line: #d4cbb8;
  --line-strong: #b9ad96;
  --forest: #2f4a3c;
  --forest-2: #3d5c4a;
  --forest-3: #1e3228;
  --olive: #6b7d4f;
  --brass: #b08d57;
  --brass-2: #c9a66b;
  --stamp: #9b3b2d;
  --good: #2f6b48;
  --fair: #9a7420;
  --poor: #9b3b2d;
  --na: #6b6458;
  --clip: #3d3226;
  --shadow: 0 1px 2px rgba(28, 25, 22, 0.06), 0 12px 32px rgba(61, 50, 38, 0.08);
  --shadow-lg: 0 2px 4px rgba(28, 25, 22, 0.06), 0 24px 48px rgba(61, 50, 38, 0.12);
  --radius: 14px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 500px at 10% -10%, rgba(176, 141, 87, 0.12), transparent 50%),
    radial-gradient(900px 400px at 110% 0%, rgba(47, 74, 60, 0.08), transparent 45%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(28, 25, 22, 0.015) 2px, rgba(28, 25, 22, 0.015) 3px);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

/* ——— Header / nav ——— */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 238, 228, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner, .site-footer .inner, .wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
}
.brand svg { width: 32px; height: 32px; }
.nav {
  display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap;
}
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 550; font-size: 0.95rem;
}
.nav a:hover { color: var(--forest); }
.nav .ghost {
  border: 1px solid var(--line-strong);
  padding: 7px 12px; border-radius: 999px;
  background: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font-weight: 650; letter-spacing: 0.01em;
  border-radius: 999px; padding: 11px 18px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--forest); color: #f6f1e7;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 18px rgba(47, 74, 60, 0.22);
}
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-brass {
  background: var(--brass); color: #1c1916;
  box-shadow: 0 8px 18px rgba(176, 141, 87, 0.28);
}
.btn-brass:hover { background: var(--brass-2); color: #1c1916; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.6); }
.btn-danger {
  background: transparent; color: var(--stamp);
  border: 1px solid #e3c4be;
}
.btn-sm { padding: 7px 12px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ——— Landing ——— */
.hero {
  padding: 48px 0 28px;
}
.hero-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
  .hero { padding: 72px 0 40px; }
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--forest); font-weight: 500;
  margin-bottom: 14px;
}
.kicker::before {
  content: ""; width: 22px; height: 2px; background: var(--brass);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600; margin-bottom: 14px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.fine { font-size: 0.88rem; color: var(--muted); }
.price-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px;
  margin-top: 8px;
}
.price-chip strong { font-family: var(--serif); font-size: 1.25rem; }
.price-chip span { color: var(--muted); font-size: 0.85rem; }

/* Report mock on landing */
.report-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 4px 4px 12px 12px;
  position: relative;
  overflow: hidden;
}
.report-card::before {
  content: "";
  display: block; height: 14px;
  background: linear-gradient(#5a4634, var(--clip));
  box-shadow: 0 6px 0 #c9a66b;
}
.report-inner { padding: 22px 22px 18px; }
.report-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  border-bottom: 2px solid var(--forest); padding-bottom: 12px; margin-bottom: 14px;
}
.report-head h3 { font-size: 1.05rem; margin: 0; }
.stamp {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--stamp);
  border: 2px solid var(--stamp); padding: 4px 8px; transform: rotate(-6deg);
  font-weight: 600;
}
.meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
  font-size: 0.85rem; margin-bottom: 14px;
}
.meta-grid dt { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.meta-grid dd { margin: 0; font-weight: 600; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.mini-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; letter-spacing: 0.02em;
}
.pill-good { background: #dceadd; color: var(--good); }
.pill-fair { background: #f3e8c8; color: var(--fair); }
.pill-poor { background: #f3d9d4; color: var(--poor); }
.pill-na { background: #ece8e0; color: var(--na); }

.section { padding: 28px 0 56px; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.cards {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; }
.card p:last-child { margin-bottom: 0; }
.num {
  font-family: var(--mono); color: var(--brass); font-size: 0.8rem;
  letter-spacing: 0.08em; display: block; margin-bottom: 8px;
}

.pricing {
  background: var(--forest-3);
  color: #f6f1e7;
  border-radius: 20px;
  padding: 28px 24px;
  display: grid; gap: 20px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 800px) {
  .pricing { grid-template-columns: 1.2fr 0.8fr; padding: 36px 40px; align-items: center; }
}
.pricing h2, .pricing p { color: #f6f1e7; }
.pricing .muted { color: #c9c0b0; }
.pricing .amt { font-family: var(--serif); font-size: 3rem; line-height: 1; }
.pricing ul { margin: 0; padding-left: 1.1em; color: #e8dfd0; }
.pricing li { margin: 0.35em 0; }

.disclaimer-box {
  border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,0.45);
  padding: 16px 18px; border-radius: 12px;
  font-size: 0.92rem; color: var(--ink-soft);
  margin-top: 28px;
}

.seo-links {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .seo-links { grid-template-columns: 1fr 1fr; } }
.seo-links a {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
}
.seo-links a:hover { border-color: var(--forest); }
.seo-links h3 { font-size: 1.05rem; margin-bottom: 4px; }
.seo-links p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--forest); }
.legal-note { max-width: 52em; }

/* ——— Inner pages ——— */
.page { padding: 36px 0 64px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.callout {
  background: var(--card); border-left: 4px solid var(--brass);
  padding: 14px 16px; margin: 18px 0; border-radius: 0 10px 10px 0;
}

/* ——— App shell ——— */
.app-body { background: #ebe4d6; }
.app-top {
  position: sticky; top: 0; z-index: 50;
  background: var(--forest-3); color: #f6f1e7;
  border-bottom: 3px solid var(--brass);
}
.app-top .inner {
  width: min(980px, calc(100% - 20px));
  margin: 0 auto; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.app-top a.brand { color: #f6f1e7; font-size: 1.05rem; }
.app-top .brand span { opacity: 0.8; font-family: var(--font); font-size: 0.78rem; font-weight: 500; margin-left: 6px; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.app-main {
  width: min(980px, calc(100% - 20px));
  margin: 16px auto 80px;
}
.progress {
  display: flex; gap: 6px; margin: 0 0 14px; overflow-x: auto;
  padding-bottom: 4px;
}
.progress button {
  flex: 1 0 auto; min-width: 88px;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 7px 10px; cursor: pointer;
  color: var(--ink-soft); font-weight: 600; font-size: 0.82rem;
}
.progress button[aria-current="step"] {
  background: var(--forest); color: #f6f1e7; border-color: var(--forest);
}
.progress button.done { border-color: var(--olive); color: var(--forest); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 18px 22px;
}
.panel h2 { font-size: 1.45rem; }
.help { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }

.form-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
label.field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 0.88rem; }
label.field span { color: var(--ink-soft); }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
input[type="text"], input[type="date"], input[type="email"], select, textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--forest); outline-offset: 1px;
}

.room-list { display: flex; flex-direction: column; gap: 8px; }
.room-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.room-row h3 { font-size: 1.05rem; margin: 0; font-family: var(--font); font-weight: 650; }
.room-row .stat { font-size: 0.8rem; color: var(--muted); }
.add-room { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.add-room input { flex: 1; min-width: 160px; }

.item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.item-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.item-name { font-weight: 650; }
.conds {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 8px;
}
.conds label {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 8px 4px; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  user-select: none;
}
.conds input { position: absolute; opacity: 0; pointer-events: none; }
.conds label:has(input:checked) { color: #fff; border-color: transparent; }
.conds label.g:has(input:checked) { background: var(--good); }
.conds label.f:has(input:checked) { background: var(--fair); }
.conds label.p:has(input:checked) { background: var(--poor); }
.conds label.n:has(input:checked) { background: var(--na); }
.item textarea { min-height: 56px; font-size: 0.92rem; font-weight: 400; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: flex-start; }
.photo-thumb {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
  position: relative;
}
.photo-wrap { position: relative; }
.photo-wrap button {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: var(--stamp); color: #fff; cursor: pointer; font-size: 12px; line-height: 22px;
}
.file-btn { font-size: 0.82rem; }

.sig-wrap { border: 1px dashed var(--line-strong); border-radius: 10px; background: #fff; }
.sig-wrap canvas { display: block; width: 100%; height: 140px; touch-action: none; cursor: crosshair; }

.sticky-bar {
  position: sticky; bottom: 0;
  background: rgba(255, 252, 247, 0.95);
  border-top: 1px solid var(--line);
  padding: 10px 0;
  margin: 16px -18px -22px;
  padding: 12px 18px;
  display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap;
  border-radius: 0 0 16px 16px;
}

.banner {
  background: #fff6e5; border: 1px solid #e6d3a1; color: var(--ink-soft);
  padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 12px;
}
.banner a { font-weight: 700; }

.hidden { display: none !important; }

.custom-item { display: flex; gap: 8px; margin-top: 8px; }
.custom-item input { flex: 1; }

/* ——— Printable report ——— */
#report-view.panel { padding: 0; overflow: hidden; }
.report-doc {
  background: #fff;
  color: #111;
  padding: 28px 24px 40px;
  position: relative;
}
.wm {
  pointer-events: none;
  position: absolute; inset: 8% 5% 10%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  color: rgba(155, 59, 45, 0.12);
  transform: rotate(-24deg);
  font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}
.report-doc header.rh {
  display: flex; justify-content: space-between; gap: 16px;
  border-bottom: 3px solid var(--forest); padding-bottom: 12px; margin-bottom: 16px;
}
.rh-brand { display: flex; gap: 10px; align-items: center; }
.rh-brand strong { font-family: var(--serif); font-size: 1.35rem; display: block; }
.rh-brand small { color: #555; }
.rh-meta { text-align: right; font-size: 0.85rem; }
.report-doc h2 { font-size: 1.15rem; border-bottom: 1px solid #ddd; padding-bottom: 4px; margin: 20px 0 10px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 0.92rem; }
.kv div { border-bottom: 1px dotted #ddd; padding: 4px 0; }
.kv dt { color: #666; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.kv dd { margin: 0; font-weight: 650; }
.rpt-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.rpt-table th, .rpt-table td { border: 1px solid #d8d0c2; padding: 6px 8px; vertical-align: top; }
.rpt-table th { background: #f4efe6; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px; margin: 8px 0 4px;
}
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 110px; object-fit: cover; border: 1px solid #ddd; }
.photo-grid figcaption { font-size: 0.72rem; color: #555; }
.sig-block { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 12px; }
@media (min-width: 640px) { .sig-block { grid-template-columns: 1fr 1fr; } }
.sig-line { border: 1px solid #ddd; padding: 10px; min-height: 90px; }
.sig-line img { max-height: 72px; }
.legal-foot {
  margin-top: 24px; font-size: 0.75rem; color: #555;
  border-top: 1px solid #ddd; padding-top: 10px;
}
.toolbar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 14px 16px; background: #f4efe6; border-bottom: 1px solid var(--line);
}

.thanks-card { max-width: 520px; margin: 48px auto; text-align: center; }

@media (max-width: 520px) {
  .conds { grid-template-columns: repeat(2, 1fr); }
  .nav .hide-sm { display: none; }
}

/* Print */
@media print {
  body, .app-body { background: #fff !important; }
  .site-header, .site-footer, .app-top, .progress, .toolbar, .sticky-bar,
  .banner, .no-print, .nav, .hero-actions { display: none !important; }
  .app-main, .wrap, .site-header .inner { width: 100% !important; margin: 0 !important; }
  .panel, #report-view.panel { box-shadow: none; border: 0; border-radius: 0; }
  .report-doc { padding: 0; }
  a { color: inherit; text-decoration: none; }
  .wm { color: rgba(155, 59, 45, 0.14); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .photo-grid img { height: 120px; }
  .rpt-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
