/* InspectReport AI — shared styles */
:root {
  --paper: #faf7f2;
  --card: #ffffff;
  --ink: #1c2733;
  --ink-soft: #51606f;
  --line: #e6e0d6;
  --brand: #14654a;
  --brand-dark: #0e4a37;
  --brand-soft: #e3f0ea;
  --amber: #b07d1e;
  --amber-soft: #faf0da;
  --red: #b3361e;
  --red-soft: #fbe7e1;
  --good: #14654a;
  --shadow: 0 1px 2px rgba(28, 39, 51, 0.06), 0 8px 24px rgba(28, 39, 51, 0.08);
  --radius: 12px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
a { color: var(--brand); }
img { max-width: 100%; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav .logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.nav .logo svg { width: 28px; height: 28px; }
.nav .links { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; }
.nav .links a { color: var(--ink-soft); text-decoration: none; }
.nav .links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 1rem var(--font-ui); cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; border-radius: 8px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- landing ---------- */
.hero { padding: 72px 0 56px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .micro { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.kicker { display: inline-block; font: 600 0.78rem/1 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 7px 12px; border-radius: 999px; margin-bottom: 18px; }

.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; transform: rotate(0.6deg);
}
.hero-card .hc-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 12px; }
.hero-card .hc-head strong { font-family: var(--font-display); font-size: 1.05rem; }
.hero-card .hc-head span { font-size: 0.75rem; color: var(--ink-soft); }
.hero-card table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.hero-card td, .hero-card th { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.hero-card th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 600 0.72rem/1.6 var(--font-ui); text-transform: capitalize; }
.chip.good { background: var(--brand-soft); color: var(--brand-dark); }
.chip.fair { background: var(--amber-soft); color: var(--amber); }
.chip.poor { background: var(--red-soft); color: var(--red); }

.section { padding: 64px 0; }
.section h2 { font-size: 2rem; margin-bottom: 8px; }
.section .lede { color: var(--ink-soft); margin: 0 0 36px; max-width: 60ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step .num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); border-radius: 999px; font: 700 1rem var(--font-display); margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.sample-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sample-panel .sp-bar { display: flex; align-items: center; gap: 8px; background: #f1ede5; border-bottom: 1px solid var(--line); padding: 10px 16px; font-size: 0.8rem; color: var(--ink-soft); }
.sample-panel .sp-bar .dots { display: flex; gap: 5px; }
.sample-panel .sp-bar .dots i { width: 10px; height: 10px; border-radius: 999px; background: var(--line); }
.sample-panel .sp-body { padding: 28px 32px; max-height: 520px; overflow: hidden; position: relative; }
.sample-panel .sp-fade { position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 22px; justify-content: center; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.price-card .tag { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font: 600 0.72rem/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.price-card h3 { font-size: 1.2rem; }
.price-card .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.price-card .price small { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-ui); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; color: var(--ink-soft); font-size: 0.95rem; }
.price-card li { padding: 6px 0 6px 26px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.price-card .strike { text-decoration: line-through; color: var(--ink-soft); font-size: 1.1rem; margin-right: 8px; }

.ai-note { display: flex; gap: 14px; background: var(--brand-soft); border: 1px solid #cfe3d9; border-radius: var(--radius); padding: 18px 20px; font-size: 0.95rem; color: var(--brand-dark); }
.ai-note svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; color: var(--ink-soft); font-size: 0.875rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- modal ---------- */
dialog.modal { border: none; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 420px; width: 92vw; }
dialog.modal::backdrop { background: rgba(28, 39, 51, 0.45); }
dialog.modal h3 { font-size: 1.3rem; }
dialog.modal p { color: var(--ink-soft); }

/* ---------- /new app ---------- */
.app-main { max-width: 860px; margin: 0 auto; padding: 36px 24px 80px; }
.app-main h1 { font-size: 1.9rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font: 600 0.85rem var(--font-ui); margin-bottom: 6px; }
.field input[type='text'], .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: 1rem var(--font-ui); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); background: #fffdf9;
  padding: 40px 20px; text-align: center; color: var(--ink-soft); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone strong { color: var(--ink); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.photo-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.photo-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.photo-card .pc-body { padding: 10px 12px 12px; }
.photo-card .pc-name { font-size: 0.75rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.room-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.room-pick {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  font: 600 0.72rem/1 var(--font-ui); padding: 6px 10px; cursor: pointer; color: var(--ink-soft);
}
.room-pick.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.photo-card .pc-remove { float: right; border: none; background: none; color: var(--red); font-size: 0.75rem; cursor: pointer; padding: 0; }

.gen-bar { position: sticky; bottom: 0; background: var(--paper); padding: 16px 0 8px; }
.gen-inner { display: flex; align-items: center; gap: 16px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 20px; }
.gen-inner .btn-primary { background: var(--brand); }
.progress { flex: 1; height: 8px; background: rgba(255,255,255,0.18); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: #6fcf9e; border-radius: 999px; transition: width 0.3s; }
.gen-status { font-size: 0.85rem; opacity: 0.9; min-width: 180px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 0.9rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 50; }
.toast.show { opacity: 1; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
