/* Rent Receipt Batch Generator — style.css */
:root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --green: #047857;
  --red: #b91c1c;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero h1 .hl { color: var(--accent); }
.hero p.sub { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.privacy-badge {
  display: inline-block; background: #ecfdf5; color: var(--green);
  border: 1px solid #a7f3d0; border-radius: 999px;
  padding: 6px 16px; font-size: 13px; margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  padding: 12px 24px; font-size: 15px; font-weight: 600; border-radius: 8px;
  cursor: pointer; text-decoration: none; transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-secondary { background: #e5e7eb; color: var(--ink); }
.btn-secondary:hover { background: #d1d5db; }
.btn-danger { background: #fee2e2; color: var(--red); }
.btn-danger:hover { background: #fecaca; }
.btn-big { font-size: 17px; padding: 14px 32px; }

/* Tool */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 24px 0 48px; }
.tool h2 { margin-top: 0; }
.step { border-top: 1px solid var(--line); padding: 24px 0; }
.step:first-of-type { border-top: none; }
.step-num {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  width: 28px; height: 28px; border-radius: 50%; text-align: center; line-height: 28px;
  font-size: 14px; margin-right: 10px;
}
.step h3 { display: inline; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
label.field input, label.field select, label.field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 400; color: var(--ink);
  background: #fff;
}
label.field input:focus, label.field select:focus, label.field textarea:focus {
  outline: 2px solid var(--accent); border-color: var(--accent);
}
.form-actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; }
.muted { color: var(--muted); font-size: 14px; }

/* Tenant list */
#tenant-list { margin: 16px 0; }
.tenant-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; background: #fafafa;
}
.tenant-info strong { display: block; }
.tenant-actions { display: flex; gap: 8px; flex-shrink: 0; }
.inline-form { background: #fafafa; border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-top: 12px; }
.inline-form h4 { margin: 0 0 4px; }

/* Generate */
.check-list { margin: 12px 0; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px solid #f3f4f6; cursor: pointer; }
.check-row:last-child { border-bottom: none; }
.check-row input { margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: #eff6ff; color: var(--accent-dark);
  border: 1px solid #bfdbfe; border-radius: 999px; padding: 4px 6px 4px 14px; margin: 0 8px 8px 0; font-size: 14px;
}
.chip button { border: none; background: none; color: var(--accent-dark); font-size: 16px; cursor: pointer; line-height: 1; }
.period-add { display: flex; gap: 10px; margin: 12px 0; align-items: flex-end; flex-wrap: wrap; }

/* Results */
#results { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.result-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; margin-bottom: 8px;
}

/* Sections */
.section { padding: 40px 0; }
.section h2 { font-size: 30px; text-align: center; margin-bottom: 28px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-card .n { font-size: 28px; font-weight: 800; color: var(--accent); }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
table.compare th { background: #f3f4f6; }
table.compare td.yes { color: var(--green); font-weight: 700; }
table.compare td.no { color: var(--red); }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 16px 20px; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; }
.faq p { color: var(--muted); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); padding: 28px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* Paywall overlay */
.overlay {
  display: none; position: fixed; inset: 0; background: rgba(17, 24, 39, .6);
  z-index: 100; align-items: center; justify-content: center; padding: 20px;
}
.overlay.open { display: flex; }
.paywall {
  background: #fff; border-radius: 14px; max-width: 460px; width: 100%;
  padding: 36px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.paywall h3 { font-size: 24px; margin: 0 0 12px; }
.paywall .price { font-size: 32px; font-weight: 800; color: var(--accent); margin: 12px 0; }
.paywall ul { text-align: left; color: var(--muted); font-size: 14px; margin: 16px 0; padding-left: 20px; }
.paywall .btn { width: 100%; margin-top: 8px; }
.paywall .ghost { background: none; border: none; color: var(--muted); margin-top: 12px; cursor: pointer; font-size: 14px; text-decoration: underline; }
.paywall .tiny { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #111827; color: #fff; padding: 12px 22px; border-radius: 8px;
  font-size: 14px; opacity: 0; transition: all .25s; z-index: 200; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #7f1d1d; }

@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .tool { padding: 20px; }
  .nav-links a:not(:last-child) { display: none; }
}
