:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-soft: #f5f5f4;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-badge {
  width: 34px; height: 34px; border-radius: 10px;
  background: #0f172a; color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all 0.16s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; transform: translateY(-1px); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: #94a3b8; background: var(--surface-soft); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #b45309; }

/* Hero */
.hero { padding: 56px 0 36px; border-bottom: 1px solid var(--border); background: radial-gradient(circle at 80% 0%, #eff6ff 0%, transparent 52%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 12.5px; font-weight: 700; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12;
  letter-spacing: -0.03em; max-width: 780px; margin-bottom: 16px;
}
.hero p.lead {
  font-size: 17px; color: var(--text-muted); max-width: 680px; margin-bottom: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px; padding-top: 18px;
  border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted);
}
.hero-stats strong { color: var(--text); font-size: 15px; }

/* Filter Bar */
.toolbar { padding: 24px 0 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.search-box {
  flex: 1 1 280px; max-width: 420px; position: relative;
}
.search-box input {
  width: 100%; padding: 11px 14px 11px 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; color: var(--text); outline: none;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.cat-pill:hover { border-color: #94a3b8; color: var(--text); }
.cat-pill.active { background: #0f172a; color: #fff; border-color: #0f172a; }

/* Cards Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding-bottom: 48px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: transform 0.16s ease, border-color 0.16s ease;
}
.tool-card:hover { transform: translateY(-2px); border-color: #cbd5e1; }
.tool-card.featured { border-color: #93c5fd; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tool-id { display: flex; align-items: center; gap: 11px; }
.tool-avatar {
  width: 40px; height: 40px; border-radius: 10px; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.tool-name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.tool-cat { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.badge {
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--emerald-soft); color: var(--emerald);
}
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.tool-tagline { font-size: 14px; color: var(--text); line-height: 1.55; }
.tool-bestfor { font-size: 12.8px; color: var(--text-muted); background: var(--surface-soft); padding: 9px 11px; border-radius: 9px; }
.tool-bestfor strong { color: var(--text); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-soft); color: var(--text-muted); font-weight: 600; }
.tool-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pricing-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }

/* Sponsor / Submit Pricing Section (#014 Monetization) */
.pricing-section { padding: 52px 0; border-top: 1px solid var(--border); background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
.section-head p { color: var(--text-muted); font-size: 15px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.price-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  background: var(--bg); display: flex; flex-direction: column; gap: 12px;
}
.price-card.pop { border: 2px solid var(--primary); background: #fff; box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08); }
.price-num { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.price-num span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.8px; color: var(--text-muted); margin: 6px 0 12px; }
.price-list li::before { content: "✓ "; color: var(--emerald); font-weight: 800; }

/* Home Guides (#001 Pinterest Hub) */
.guide-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.guide-steps { padding-left: 18px; font-size: 13.5px; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; }
.amazon-box {
  margin-top: auto; padding: 14px; border-radius: 10px;
  background: var(--amber-soft); border: 1px solid #fde68a;
  display: flex; flex-direction: column; gap: 8px;
}
.amazon-box-title { font-size: 13px; font-weight: 700; color: #92400e; }
.pin-hook { font-size: 12px; color: var(--text-muted); border-left: 3px solid var(--primary); padding-left: 10px; font-style: italic; }

/* Legal Pages */
.prose { max-width: 780px; margin: 44px auto 64px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.prose h1 { font-size: 30px; margin-bottom: 12px; }
.prose h2 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15px; color: var(--text-muted); margin-bottom: 10px; }
.prose ul { padding-left: 20px; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 80;
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); border-radius: 16px; max-width: 500px; width: 100%;
  padding: 26px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { font-size: 19px; }
.close-btn { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: inherit;
}
.form-msg { font-size: 13px; margin-top: 8px; min-height: 20px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 36px 0; font-size: 13.5px; color: var(--text-muted);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.disclosure-note { margin-top: 14px; font-size: 12.2px; color: #64748b; max-width: 820px; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 36px 0 26px; }
}
