/* ============================================================
   BizChecklistTools — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f1117;
  --surface:   #1a1d27;
  --surface2:  #222536;
  --border:    #2d3148;
  --accent:    #4f7cff;
  --accent2:   #7c5cff;
  --text:      #e8eaf0;
  --muted:     #8a90a8;
  --success:   #34d399;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --font:      'Inter', system-ui, sans-serif;
  --max-w:     820px;
  --ad-bg:     #141720;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

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

img { max-width: 100%; display: block; }

/* ── Ad Slots ─────────────────────────────────────────────── */
.ad-slot {
  background: var(--ad-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .05em;
  margin: 20px auto;
  max-width: var(--max-w);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle   { min-height: 250px; max-width: 336px; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ── Hero (Homepage) ──────────────────────────────────────── */
.hero {
  padding: 60px 16px 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 24px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-stat strong { display: block; font-size: 1.6rem; color: var(--accent); }
.hero-stat span   { font-size: .8rem; color: var(--muted); }

/* ── Search ───────────────────────────────────────────────── */
.search-bar {
  max-width: 480px;
  margin: 24px auto 0;
  position: relative;
}
.search-bar input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 20px;
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--muted); }

/* ── Category Section ─────────────────────────────────────── */
.section { padding: 32px 0; }
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .badge {
  background: var(--surface2);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.section-desc { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

/* ── Cards Grid ───────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.card-desc { font-size: .82rem; color: var(--muted); flex: 1; }
.card-arrow { color: var(--accent); font-size: .8rem; margin-top: 4px; }

/* ── Checklist Page ───────────────────────────────────────── */
.page-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.page-breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.page-breadcrumb a { color: var(--muted); }
.page-breadcrumb a:hover { color: var(--accent); }
.page-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.page-desc { color: var(--muted); font-size: .95rem; max-width: 640px; }
.page-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.page-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--muted);
}
.page-meta-item .dot { color: var(--accent); font-size: 1.1rem; line-height: 1; }

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.progress-bar-bg {
  flex: 1;
  height: 8px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  transition: width .4s ease;
  width: 0%;
}
.progress-text { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.progress-pct   { font-size: .9rem; font-weight: 700; color: var(--accent); white-space: nowrap; min-width: 36px; }

/* ── Checklist ────────────────────────────────────────────── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.checklist-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.checklist-item:hover { border-color: var(--accent); }
.checklist-item.done {
  background: rgba(52,211,153,.06);
  border-color: var(--success);
}
.checklist-item.done .step-text { text-decoration: line-through; color: var(--muted); }
.checklist-item.done .step-num  { background: var(--success); color: #000; }

.step-checkbox {
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: border-color .2s, background .2s;
}
.checklist-item.done .step-checkbox {
  background: var(--success);
  border-color: var(--success);
}
.step-check-icon { display: none; color: #000; font-size: .85rem; font-weight: 700; }
.checklist-item.done .step-check-icon { display: block; }

.step-num {
  width: 22px; height: 22px;
  background: var(--surface2);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background .2s, color .2s;
}

.step-body { flex: 1; }
.step-text { font-size: .95rem; font-weight: 500; display: block; }
.step-tip {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

/* ── Reset Button ─────────────────────────────────────────── */
.reset-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: .8rem;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color .2s, color .2s;
  margin-top: 14px;
}
.reset-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Tool Section ─────────────────────────────────────────── */
.tools-section {
  margin: 36px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.tools-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tools-header h2 { font-size: 1rem; font-weight: 700; }
.tools-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
}
.tools-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 10px 16px;
  font-size: .875rem;
  font-family: var(--font);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  margin-bottom: -1px;
}
.tools-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tools-tab:hover { color: var(--text); }

.tool-panel { padding: 22px; display: none; }
.tool-panel.active { display: block; }

.tool-form { display: flex; flex-direction: column; gap: 14px; }
.tool-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  align-self: flex-start;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.tool-output {
  margin-top: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  display: none;
}
.tool-output.visible { display: block; }
.output-label  { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.output-value  { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.output-detail { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.gen-output-text {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}
.copy-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .78rem;
  cursor: pointer;
  font-family: var(--font);
  margin-top: 10px;
  transition: border-color .2s, color .2s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Related Pages ────────────────────────────────────────── */
.related-section { margin: 32px 0; }
.related-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .2s;
}
.related-card:hover { border-color: var(--accent); }
.related-card a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  display: block;
}
.related-card span { font-size: .78rem; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── Utilities ────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Intro Section ────────────────────────────────────────── */
.intro-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.intro-text {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

/* ── Checklist Action Buttons ─────────────────────────────── */
.checklist-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.action-btn {
  border-radius: 8px;
  padding: 9px 18px;
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all .2s;
}
.action-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-color: transparent;
}
.action-btn--primary:hover { opacity: .9; transform: translateY(-1px); }
.action-btn--ghost {
  background: transparent;
  color: var(--muted);
}
.action-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.action-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ── Ad Slot Center Wrap ──────────────────────────────────── */
.ad-slot-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0;
}

/* ── Conclusion Box ───────────────────────────────────────── */
.conclusion-section { margin: 28px 0; }
.conclusion-box {
  background: linear-gradient(135deg, rgba(79,124,255,.08), rgba(124,92,255,.08));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.conclusion-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.conclusion-text {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── FAQ Section ──────────────────────────────────────────── */
.faq-section {
  margin: 32px 0;
}
.faq-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  text-align: left;
  transition: background .2s;
}
.faq-question:hover { background: var(--surface2); }
.faq-question[aria-expanded="true"] { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
}
.faq-answer {
  padding: 0 18px 16px;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
}
.faq-answer[hidden] { display: none; }

/* ── Tools Badge ──────────────────────────────────────────── */
.tools-badge {
  margin-left: auto;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .04em;
}

/* ── Static Pages (About, Privacy, Contact) ───────────────── */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}
.static-page h1 { font-size: 2rem; margin-bottom: 12px; }
.static-page h2 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--text); }
.static-page p, .static-page li {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 10px;
}
.static-page ul { padding-left: 20px; }
.static-page a { color: var(--accent); }
.static-page .lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 24px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.contact-form .form-group label { color: var(--text); font-size: .9rem; font-weight: 500; }
.contact-form textarea { min-height: 120px; }

/* ── Category Filter Bar ──────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 16px 4px;
  margin: 0 auto;
}
.filter-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--font);
  padding: 8px 20px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.filter-tab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.filter-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(79,124,255,.35);
}

/* Categories container transition (JS-driven fade) */
#categories { transition: opacity .25s ease; }

/* ── Hamburger Button ─────────────────────────────────────── */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  z-index: 1001;
}

/* ── Mobile Navigation Drawer ─────────────────────────────── */
.mobile-nav {
  display: none; /* Hide on desktop */
  position: fixed;
  top: 0;
  right: -280px; /* Hide off-screen by width */
  width: 280px;
  height: 100%;
  background: var(--surface);
  box-shadow: -4px 0 24px rgba(0,0,0,0.5);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  padding: 80px 24px;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--accent); text-decoration: none; }

/* Overlay when menu is open */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  cursor: pointer;
}
.mobile-nav.open ~ .mobile-overlay {
  opacity: 1;
  visibility: visible;
}

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger-btn { display: block; }
  .mobile-nav { display: flex; } /* Show only on mobile viewport */
  .hero { padding: 40px 16px 30px; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 16px 28px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .tool-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .progress-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 400px) {
  .cards-grid { grid-template-columns: 1fr; }
}

