:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-weight: 700; font-size: 18px; color: var(--primary); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-light); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #EEF2FF 0%, #F9FAFB 100%);
}
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 20px; color: var(--text-light); max-width: 640px; margin: 0 auto 32px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); margin-left: 12px; }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.section h3 { font-size: 20px; font-weight: 600; margin: 24px 0 8px; }
.section p, .section li { font-size: 16px; color: var(--text); }

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { margin-top: 0; font-size: 18px; }
.card p { font-size: 14px; color: var(--text-light); }
.card .tool-count { font-size: 32px; font-weight: 800; color: var(--primary); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.pricing-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: center; }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.pricing-card h3 { margin: 0 0 8px; }
.pricing-card .price { font-size: 36px; font-weight: 800; color: var(--primary); }
.pricing-card .price span { font-size: 16px; font-weight: 400; color: var(--text-light); }
.pricing-card ul { list-style: none; margin: 16px 0; text-align: left; }
.pricing-card ul li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.pricing-card ul li:last-child { border-bottom: none; }

/* Legal pages */
.legal { padding: 48px 0; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal .meta { color: var(--text-light); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 8px 0 16px 24px; }
.legal li { margin-bottom: 4px; }

/* Support page */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.support-card { text-align: center; padding: 32px; border: 1px solid var(--border); border-radius: 12px; }
.support-card h3 { margin-bottom: 8px; }

/* Footer */
.footer { background: var(--text); color: #fff; padding: 32px 0; text-align: center; font-size: 14px; }
.footer a { color: #A5B4FC; }

/* Embeddable (no nav/footer for Teams iframe) */
.embed-only .nav, .embed-only .footer { display: none; }
.embed-only .section:first-of-type { padding-top: 24px; }

/* Code */
code { background: #F3F4F6; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
pre { background: #1F2937; color: #E5E7EB; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0; }
pre code { background: none; padding: 0; color: inherit; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .nav-links { gap: 12px; }
}
