/* ============================================
   Small Business Launch Checklist - Design System
   Color: Lime #65a30d
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-text: #1a1a2e;
  --color-text-muted: #6b7280;
  --color-text-faint: #9ca3af;
  --color-primary: #65a30d;
  --color-primary-light: #a3e635;
  --color-primary-dark: #4d7c0f;
  --color-success: #047857;
  --color-warning: #9a5400;
  --color-error: #dc2626;
  --color-border: #e5e7eb;
  --color-btn-text: #fff;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-width: 1100px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --section-gap: 3rem;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.125rem;
  --z-header: 100;
  --z-skip-link: 1000;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-faint: #64748b;
  --color-primary: #a3e635;
  --color-primary-light: #bef264;
  --color-primary-dark: #65a30d;
  --color-success: #10b981;
  --color-warning: #fbbf24;
  --color-error: #f87171;
  --color-border: #334155;
  --color-btn-text: #0f172a;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--color-primary); color: #fff;
  padding: 0.5rem 1rem; border-radius: var(--radius);
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: #111827; color: rgba(255,255,255,0.85);
  text-align: center; padding: 0.5rem 1rem;
  font-size: 0.785rem; font-weight: 400;
  letter-spacing: 0.01em; line-height: 1.4;
}
.announcement-bar strong { font-weight: 600; color: #fff; }
.announcement-bar .ann-cta {
  color: var(--color-primary-light); text-decoration: underline;
  text-underline-offset: 2px; font-weight: 500; margin-left: 0.35rem;
}
.announcement-bar .ann-cta:hover { color: #fff; }
.announcement-bar .ann-sep { margin: 0 0.4rem; opacity: 0.35; }
[data-theme="dark"] .announcement-bar { background: #1e293b; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 800; font-size: 1.1rem; color: var(--color-text); display: flex; align-items: center; gap: 0.5rem; }
.logo:hover { text-decoration: none; }
.logo-icon { width: 24px; height: 24px; }
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 1.5rem;
}
.nav-links a { color: var(--color-text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); text-decoration: none; }

/* ---------- Mobile menu ---------- */
.mobile-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; color: var(--color-text); cursor: pointer;
}
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    padding: 1rem; gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  background: none; border: 1px solid var(--color-border);
  border-radius: 50%; width: 2rem; height: 2rem;
  cursor: pointer; color: var(--color-text); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  padding: 3rem 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* ---------- Progress Bar ---------- */
.progress-bar-container {
  position: sticky; top: 52px; z-index: 90;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 1.5rem;
}
.progress-bar-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
}
.progress-bar-track {
  flex: 1; height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%; width: 0%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.progress-bar-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 3.5rem;
  text-align: right;
}

/* ---------- Checklist Container ---------- */
.checklist-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ---------- Section ---------- */
.section-block {
  margin-bottom: 2rem;
}
.section-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 0 0.75rem;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 0.75rem;
  cursor: pointer;
  user-select: none;
}
.section-header:hover { opacity: 0.85; }
.section-icon {
  width: 36px; height: 36px;
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  flex: 1;
}
.section-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
}
.section-chevron {
  font-size: 1rem;
  color: var(--color-text-muted);
  transition: transform 0.2s;
}
.section-block.collapsed .section-chevron {
  transform: rotate(-90deg);
}
.section-block.collapsed .section-items {
  display: none;
}

/* ---------- Checklist Item ---------- */
.check-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--color-bg);
  transition: border-color 0.15s;
}
.check-item:hover {
  border-color: var(--color-primary);
}
.check-item.checked {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
}
.check-item-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  user-select: none;
}
.check-box {
  width: 22px; height: 22px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.check-item.checked .check-box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.check-box svg {
  width: 14px; height: 14px;
  opacity: 0;
  transition: opacity 0.15s;
}
.check-item.checked .check-box svg {
  opacity: 1;
}
.check-label {
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
}
.check-item.checked .check-label {
  text-decoration: line-through;
  color: var(--color-text-muted);
}
.check-expand {
  background: none; border: none;
  color: var(--color-text-muted);
  cursor: pointer; font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.check-expand:hover {
  background: var(--color-surface);
  color: var(--color-text);
}
.check-info {
  display: none;
  padding: 0 1rem 1rem 3.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.check-info.open {
  display: block;
}
.check-info a {
  font-weight: 600;
}

/* ---------- Decision Tree ---------- */
.decision-tree {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 0.75rem;
}
.dt-option {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.dt-option:last-child { border-bottom: none; }
.dt-name {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 100px;
  color: var(--color-primary);
}
.dt-detail {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.dt-pros { color: var(--color-success); }
.dt-cons { color: var(--color-error); }

/* ---------- Summary Panel ---------- */
.summary-panel {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}
.summary-panel h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.summary-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.summary-stat {
  text-align: center;
}
.summary-stat .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.summary-stat .stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.summary-estimate {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

/* ---------- Buy button ---------- */
.buy-btn, .hero-cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-btn-text);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.buy-btn:hover, .hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
  color: var(--color-btn-text);
}

/* ---------- Stats Section ---------- */
.stats-section {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}
.stat-card .stat-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ---------- How It Works ---------- */
.how-section {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.how-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.how-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.how-card .how-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-btn-text);
  font-weight: 700; font-size: 1rem;
  margin-bottom: 0.75rem;
}
.how-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem;
}
.how-card p {
  font-size: 0.9rem; color: var(--color-text-muted);
}

/* ---------- Info sections ---------- */
.info-section {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.info-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem;
}
.info-card p {
  color: var(--color-text-muted); font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq-section { max-width: 700px; margin: 3rem auto; padding: 0 1.5rem; }
.faq-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.faq-item { border-bottom: 1px solid var(--color-border); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::before { content: "+ "; color: var(--color-primary); }
.faq-item[open] summary::before { content: "- "; }
.faq-answer { margin-top: 0.5rem; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem; padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: center; margin-bottom: 1rem;
}
.footer-links a { color: var(--color-text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--color-primary); }
.footer-author {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.footer-author img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.footer-author p { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; }

/* ---------- Cross-sell ---------- */
.footer-products {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.footer-products h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-text-muted); margin-bottom: 0.5rem; font-weight: 600;
}
.footer-products-list {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 0.5rem 1.5rem; justify-content: center; font-size: 0.85rem;
}
.footer-products-list a { color: var(--color-text-muted); }
.footer-products-list a:hover { color: var(--color-primary); }
.product-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 0.35rem;
}

/* ---------- Content pages ---------- */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.content-page h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.content-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.content-page h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
.content-page p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.content-page ul, .content-page ol {
  color: var(--color-text-muted);
  margin: 0 0 1rem 1.5rem;
  line-height: 1.7;
}
.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.content-page th, .content-page td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
.content-page th {
  background: var(--color-surface);
  font-weight: 700;
}
.comparison-table {
  overflow-x: auto;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* ---------- Trust badges ---------- */
.trust-badge {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* ---------- Focus ---------- */
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

/* ---------- Print ---------- */
@media print {
  .announcement-bar, .site-header, .site-footer,
  .theme-toggle, .mobile-toggle, .skip-link,
  .progress-bar-container, .buy-btn, .hero-cta,
  .trust-badge { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .check-item { break-inside: avoid; border-color: #ccc; }
  .section-block.collapsed .section-items { display: block !important; }
  .check-info { display: block !important; }
}
