/* BillPack Static Website & Legal Pages
 * Matches the extension's slate & emerald accounting aesthetic.
 * Zero external dependencies for instant loading on GitHub Pages.
 */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;

  --accent: #059669;
  --accent-hover: #047857;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;

  --pro: #4338ca;
  --pro-soft: #eef2ff;
  --pro-border: #c7d2fe;

  --dark: #0f172a;
  --dark-surface: #1e293b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.18);
  --max-w: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  text-decoration: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-secondary:hover {
  background: var(--surface-subtle);
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.12), transparent 45%),
    radial-gradient(circle at 12% 75%, rgba(67, 56, 202, 0.06), transparent 40%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 1.075rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Mock Side Panel Preview */
.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--dark);
  color: #f8fafc;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.preview-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.preview-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.preview-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.preview-pill {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 7px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.preview-pill.is-active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent-border);
}

.preview-query {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #ffffff;
  font-size: 0.8rem;
}

.preview-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.preview-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.preview-filename {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-meta {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.preview-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  flex-shrink: 0;
}

.preview-footer-btn {
  text-align: center;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
}

.preview-skipped {
  font-size: 0.74rem;
  color: var(--text-soft);
  text-align: center;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.025em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.section-alt .feature-card {
  background: var(--bg);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

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

/* Privacy Callout */
.privacy-banner {
  background: var(--dark);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.privacy-banner h2 {
  margin: 0 0 12px;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.privacy-banner p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.96rem;
}

.privacy-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-points li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #e2e8f0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border);
  margin-bottom: 10px;
}

.price-badge.pro {
  background: var(--pro-soft);
  color: var(--pro);
  border-color: var(--pro-border);
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 8px 0 4px;
}

.price-amount small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
}

.price-sub {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0 0 16px;
  min-height: 36px;
}

.price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.price-features li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.pricing-footnote {
  margin: 24px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-soft);
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-soft);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Legal / Document Pages */
.doc-hero {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.doc-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  letter-spacing: -0.025em;
}

.doc-meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.doc-body {
  padding: 40px 0 64px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.doc-card h2 {
  margin: 28px 0 10px;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
}

.doc-card h2:first-child {
  margin-top: 0;
}

.doc-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.doc-card ul,
.doc-card ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-muted);
}

.doc-card li {
  margin-bottom: 6px;
}

.callout-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 18px 0;
  color: #064e3b;
  font-size: 0.93rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--surface-subtle);
  color: var(--text);
  font-weight: 600;
}

.data-table td {
  color: var(--text-muted);
}

/* Support & Uninstall Form Elements */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.94rem;
}

.option-label:hover {
  border-color: var(--accent);
}

.feedback-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.94rem;
  resize: vertical;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-soft);
  font-size: 0.875rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .privacy-banner {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .doc-card {
    padding: 22px 18px;
  }
}
