/* CraftKit — Notion Template Storefront */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f3f3f0;
  --border: #e5e5e0;
  --text: #1a1a18;
  --text-dim: #6b6b68;
  --accent: #e8622a;
  --accent-hover: #d4521f;
  --accent-light: #fef0e9;
  --teal: #0d9488;
  --purple: #7c3aed;
  --green: #16a34a;
  --orange: #ea580c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.02em; }

/* ── Nav ─────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; max-width: 1100px; margin: 0 auto;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.4rem;
  text-decoration: none;
}
.logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--text-dim); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: white !important;
  padding: 0.5rem 1.1rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* ── Hero ────────────────────────────────── */
.hero {
  padding: 8rem 2rem 5rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-light); color: var(--accent);
  padding: 0.35rem 0.85rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero h1 {
  font-size: 3.25rem; line-height: 1.1; letter-spacing: -0.04em;
  color: var(--text); margin-bottom: 1.25rem;
}
.hero h1 span {
  color: var(--accent);
  position: relative;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-dim); max-width: 500px;
  margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: white;
  padding: 0.85rem 1.8rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: all 0.15s;
}
.hero-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hero-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-image {
  margin: 3rem auto 0;
  max-width: 800px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
}
.hero-image img { width: 100%; display: block; }

/* ── Trust bar ───────────────────────────── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.trust-bar-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  flex-wrap: wrap;
}
.trust-stat { text-align: center; }
.trust-stat .number { display: block; font-size: 1.5rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; color: var(--text); }
.trust-stat .label { font-size: 0.78rem; color: var(--text-dim); }
.trust-divider { width: 1px; height: 40px; background: var(--border); }
.trust-logos { font-size: 0.82rem; color: var(--text-dim); }

/* ── Category filter ─────────────────────── */
.filter-section {
  padding: 3.5rem 2rem 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
.filter-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 1rem; }
.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-pill {
  padding: 0.45rem 1rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  background: var(--surface); color: var(--text-dim);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.filter-pill:hover { border-color: var(--text-dim); color: var(--text); }
.filter-pill.active { background: var(--text); color: white; border-color: var(--text); }

/* ── Templates grid ──────────────────────── */
.templates-section {
  padding: 1.5rem 2rem 4rem;
  max-width: 1100px; margin: 0 auto;
}
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all 0.2s;
  display: flex; flex-direction: column;
}
.template-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(232, 98, 42, 0.1);
  transform: translateY(-2px);
}
/* Featured card — the only live product */
.template-card[data-live="true"] {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(232, 98, 42, 0.12);
}
.template-preview {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--surface-2), #e8e8e2);
  display: flex; align-items: center; justify-content: center;
}
.template-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.template-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.category-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem; border-radius: 4px;
}
.cat-productivity { background: #f0fdfa; color: var(--teal); }
.cat-business { background: #eff6ff; color: #2563eb; }
.cat-content { background: #faf5ff; color: var(--purple); }
.cat-personal { background: #f0fdf4; color: var(--green); }
.template-price { font-size: 1.1rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; color: var(--text); }
.template-title { font-size: 1rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; margin-bottom: 0.4rem; color: var(--text); }
.template-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; flex: 1; margin-bottom: 1rem; }
.template-footer { padding: 0 1.25rem 1.25rem; display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.template-cta {
  background: var(--accent); color: white;
  padding: 0.45rem 1rem; border-radius: 7px;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.template-cta:hover { background: var(--accent-hover); }
.template-cta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ── Features strip ──────────────────────── */
.features-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 2rem; }
.features-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.feature-item { text-align: center; }
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-title { font-size: 0.95rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; margin-bottom: 0.35rem; color: var(--text); }
.feature-desc { font-size: 0.82rem; color: var(--text-dim); }

/* ── Pricing ─────────────────────────────── */
.pricing-section { background: var(--text); color: white; padding: 5rem 2rem; }
.pricing-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.pricing-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; }
.pricing-heading { font-size: 2.5rem; color: white; margin-bottom: 1rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; text-align: left; }
.pricing-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 2rem; position: relative;
}
.pricing-highlight { background: var(--accent); border-color: var(--accent); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #16a34a; color: white;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem; border-radius: 20px;
}
.pricing-name { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 0.4rem; font-family: 'Space Grotesk', sans-serif; }
.pricing-from { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 0.75rem; }
.pricing-price { font-size: 2.5rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; color: white; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; }
.pricing-features li {
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  display: flex; gap: 0.5rem; align-items: center;
}
.pricing-features li svg { width: 13px; height: 13px; fill: none; stroke: var(--green); stroke-width: 2.5; flex-shrink: 0; }
.pricing-highlight .pricing-features li svg { stroke: rgba(255,255,255,0.8); }
.pricing-cta {
  display: block; text-align: center;
  background: rgba(255,255,255,0.12); color: white;
  padding: 0.7rem 1.25rem; border-radius: 9px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.pricing-cta:hover { background: rgba(255,255,255,0.2); }
.pricing-cta-primary { background: white; color: var(--accent); }
.pricing-cta-primary:hover { background: rgba(255,255,255,0.9); }

/* ── CTA banner ──────────────────────────── */
.cta-banner {
  background: var(--accent-light); border-top: 1px solid rgba(232,98,42,0.15);
  padding: 4rem 2rem; text-align: center;
}
.cta-banner h2 { font-size: 2rem; color: var(--text); margin-bottom: 0.75rem; }
.cta-banner p { color: var(--text-dim); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: white;
  padding: 0.85rem 1.8rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: all 0.15s;
}
.cta-banner-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cta-banner-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── Footer ──────────────────────────────── */
footer {
  background: var(--surface-2); border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.footer-brand-icon {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand-icon svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.5; }
.footer-notion {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-dim);
}
.footer-links { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 480px) {
  .hero { padding: 7rem 1.25rem 3rem; }
  .hero h1 { font-size: 1.9rem; }
  .templates-section, .filter-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .templates-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { justify-content: center; }
}
