/* Landscaper bundle — matches DocStack theme */
:root {
  --bg: #F8F5F0;
  --surface: #FFFFFF;
  --fg: #1A1714;
  --fg-muted: #6B6560;
  --fg-faint: #A09890;
  --accent: #B84A1F;
  --accent-dark: #8C3816;
  --border: #E4DED6;
  --shadow: rgba(26,23,20,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-tagline { font-size: 0.8125rem; color: var(--fg-muted); }
.nav-links { margin-left: auto; display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.875rem; color: var(--fg-muted); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

.page { max-width: 900px; margin: 0 auto; padding: 0 2rem 4rem; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* Bundle cards */
.bundle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.bundle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bundle-card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.bundle-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bundle-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}
.bundle-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.bundle-card li {
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding-left: 1.25rem;
  position: relative;
}
.bundle-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
  margin-top: 0.25rem;
}

/* CTA */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.cta-price {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.cta-price span {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
}
.cta-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  margin: 0.75rem 0 2rem;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  margin-left: 0.75rem;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--fg-muted); color: var(--fg); }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Preview section */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.preview-section { display: flex; flex-direction: column; gap: 0.5rem; }
.preview-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.preview-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--fg);
  transition: box-shadow 0.15s;
}
.preview-link:hover { box-shadow: 0 4px 16px var(--shadow); }
.preview-link h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.25rem; }
.preview-link p { font-size: 0.8125rem; color: var(--fg-muted); }

/* ===== INVOICE TEMPLATE PAGE ===== */
.invoice-page { max-width: 900px; margin: 0 auto; padding: 0 2rem 4rem; }
.invoice-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-tool {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-tool:hover { background: var(--bg); }
.btn-tool-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-tool-accent:hover { background: var(--accent-dark); }

.invoice-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px var(--shadow);
}

/* Invoice header */
.inv-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; gap: 2rem; }
.inv-logo-area { flex: 1; }
.inv-logo-input {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  font-family: 'Fraunces', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
  width: 100%;
  max-width: 280px;
  padding: 0.25rem 0;
  outline: none;
}
.inv-logo-input:focus { border-bottom-color: var(--accent); }
.inv-logo-sub {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  font-size: 0.875rem;
  color: var(--fg-muted);
  width: 100%;
  max-width: 280px;
  padding: 0.2rem 0;
  outline: none;
  margin-top: 0.25rem;
}
.inv-invoice-label {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.inv-meta { text-align: right; }
.inv-meta-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.375rem;
  justify-content: flex-end;
}
.inv-meta-label { font-size: 0.75rem; color: var(--fg-muted); min-width: 60px; text-align: right; }
.inv-meta-input {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  font-size: 0.875rem;
  color: var(--fg);
  width: 140px;
  text-align: right;
  outline: none;
  padding: 0.1rem 0;
}
.inv-meta-input:focus { border-bottom-color: var(--accent); }

/* Billing section */
.inv-billing { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.inv-bill-block label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.5rem;
}
.inv-input-full {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  width: 100%;
  font-size: 0.9375rem;
  color: var(--fg);
  padding: 0.2rem 0;
  outline: none;
  font-family: inherit;
}
.inv-input-full:focus { border-bottom-color: var(--accent); }
.inv-textarea {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  width: 100%;
  font-size: 0.9375rem;
  color: var(--fg);
  padding: 0.2rem 0;
  outline: none;
  font-family: inherit;
  resize: vertical;
  min-height: 3.5rem;
}
.inv-textarea:focus { border-bottom-color: var(--accent); }

/* Line items table */
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.inv-table thead th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding: 0 0.75rem 0.75rem 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.inv-table thead th:last-child { text-align: right; }
.inv-table thead th:nth-child(2),
.inv-table thead th:nth-child(3),
.inv-table thead th:nth-child(4) { text-align: center; }
.inv-table tbody td { padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.inv-table tbody td input[type="text"],
.inv-table tbody td input[type="number"] {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.9rem;
  color: var(--fg);
  outline: none;
  font-family: inherit;
  padding: 0.1rem 0;
}
.inv-table tbody td input[type="number"] { text-align: center; }
.inv-table tbody td:last-child input { text-align: right; }
.inv-table .num { font-variant-numeric: tabular-nums; }

.inv-add-row {
  background: none;
  border: 1px dashed var(--fg-faint);
  color: var(--fg-faint);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-family: inherit;
  margin-bottom: 1.5rem;
  transition: border-color 0.15s, color 0.15s;
}
.inv-add-row:hover { border-color: var(--accent); color: var(--accent); }

/* Totals */
.inv-totals { display: flex; justify-content: flex-end; margin-bottom: 2.5rem; }
.inv-totals-table { width: 280px; }
.inv-total-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.inv-total-label { font-size: 0.875rem; color: var(--fg-muted); }
.inv-total-input {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  font-size: 0.875rem;
  color: var(--fg);
  text-align: right;
  width: 120px;
  outline: none;
}
.inv-total-input:focus { border-bottom-color: var(--accent); }
.inv-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0 0;
  margin-top: 0.5rem;
}
.inv-grand-label { font-family: 'Fraunces', serif; font-size: 1.125rem; font-weight: 600; }
.inv-grand-amount {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Payment info */
.inv-payment {
  background: var(--bg);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.inv-payment-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.75rem;
}
.inv-payment-input {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  width: 100%;
  font-size: 0.9rem;
  color: var(--fg);
  outline: none;
  font-family: inherit;
  margin-bottom: 0.375rem;
}
.inv-payment-input:focus { border-bottom-color: var(--accent); }

/* Footer note */
.inv-footer { font-size: 0.8125rem; color: var(--fg-muted); margin-top: 1rem; }
.inv-footer-input {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  width: 100%;
  outline: none;
  font-family: inherit;
}
.inv-footer-input:focus { border-bottom-color: var(--accent); }

/* Toggle: hours vs sqft */
.calc-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.calc-toggle button {
  padding: 0.5rem 1.25rem;
  background: var(--surface);
  border: none;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--fg-muted);
  transition: background 0.15s, color 0.15s;
}
.calc-toggle button.active { background: var(--accent); color: #fff; }
.calc-toggle button:hover:not(.active) { background: var(--bg); }

/* ===== CONTRACT PAGE ===== */
.contract-page { max-width: 900px; margin: 0 auto; padding: 0 2rem 4rem; }
.contract-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 4px 24px var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}
.contract-title {
  font-family: 'Fraunces', serif;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.375rem;
}
.contract-subtitle {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 2rem;
}
.c-section { margin-bottom: 1.75rem; }
.c-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}
.c-text {
  font-size: 0.9375rem;
  color: var(--fg);
  line-height: 1.65;
}
.c-field {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  font-size: 0.9375rem;
  color: var(--fg);
  width: 100%;
  outline: none;
  font-family: inherit;
  padding: 0.1rem 0;
  display: block;
  margin-bottom: 0.375rem;
}
.c-field:focus { border-bottom-color: var(--accent); }
.c-underline {
  border: none;
  border-bottom: 1px solid var(--fg);
  background: transparent;
  font-size: 0.9375rem;
  color: var(--fg);
  outline: none;
  font-family: inherit;
  min-width: 200px;
  display: inline-block;
  margin: 0 0.25rem;
}
.c-underline:focus { border-bottom-color: var(--accent); border-bottom-style: dashed; }

.c-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.c-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem 1.5rem; }

.c-section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.c-clause-box {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
}
.c-clause-box p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }

.c-signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.c-sign-block { display: flex; flex-direction: column; gap: 0.5rem; }
.c-sign-line {
  border: none;
  border-top: 1px solid var(--fg);
  padding-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.c-sign-input {
  border: none;
  border-bottom: 1px dashed var(--fg-faint);
  background: transparent;
  font-size: 0.875rem;
  color: var(--fg);
  width: 100%;
  outline: none;
  font-family: inherit;
  padding: 0.1rem 0;
}
.c-sign-input:focus { border-bottom-color: var(--accent); }

/* Print styles */
@media print {
  .nav, .invoice-toolbar, .btn-tool, .calc-toggle { display: none !important; }
  body { background: white; }
  .invoice-doc, .contract-doc { box-shadow: none; border: 1px solid #ccc; }
  .inv-logo-input, .inv-meta-input, .inv-input-full, .inv-textarea,
  .c-field, .c-underline, .c-sign-input {
    border-bottom-color: #999 !important;
    color: #000;
  }
}