/* BillMint — minimal, responsive */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.875rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.nav-main a {
  color: var(--muted);
  font-size: 0.9375rem;
  padding: 0.35rem 0;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.5rem;
  }

  .nav-main.is-open {
    display: flex;
  }
}

/* Main */
main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 42rem;
  margin: 0 0 2rem;
}

/* Hero */
.hero {
  padding: 2rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Cards / features */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.price-card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
  flex: 1;
}

.price-card li {
  margin-bottom: 0.35rem;
}

.disclaimer {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  outline-offset: 1px;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Invoice tool */
.invoice-tool {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .invoice-tool {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.invoice-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.invoice-form-panel h2 {
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 500px) {
  .form-row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.line-items {
  margin: 1rem 0;
}

.line-item {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

@media (min-width: 600px) {
  .line-item {
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    align-items: end;
  }
}

.line-item .form-group {
  margin-bottom: 0;
}

.line-item .form-group input {
  max-width: none;
}

.btn-remove {
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  height: fit-content;
}

.btn-remove:hover {
  border-color: #fca5a5;
  color: #b91c1c;
}

.invoice-preview-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.invoice-preview-panel h2 {
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

.invoice-sheet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  min-height: 200px;
}

.invoice-sheet .inv-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.invoice-sheet .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.invoice-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.invoice-sheet th,
.invoice-sheet td {
  padding: 0.5rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.invoice-sheet th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.invoice-sheet .num {
  text-align: right;
}

.invoice-sheet .total-row td {
  font-weight: 700;
  border-bottom: none;
  padding-top: 1rem;
  font-size: 1.0625rem;
}

.invoice-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

/* Legal */
.legal-content {
  max-width: 42rem;
}

.legal-content h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  color: var(--muted);
  margin: 0 0 1rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* Print */
@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .no-print,
  .invoice-form-panel {
    display: none !important;
  }

  main {
    padding: 0;
  }

  .invoice-preview-panel {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .invoice-sheet {
    border: none;
  }
}
