/* SourceToDocs — shared site stylesheet
 * Used by /pricing.html and the SEO pillar pages.
 * Existing pages (index.html, privacy.html, terms.html) keep their inline styles.
 */

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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  --accent: #65a30d;
  --accent-light: #84cc16;
  --accent-dark: #4d7c0f;
  --accent-glow: rgba(101, 163, 13, 0.12);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #dc2626;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 820px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(101, 163, 13, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(101, 163, 13, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-logo span { color: var(--accent); }

.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 200ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
}

/* ---------- Section primitives ---------- */
.section-label {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  position: relative;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.75rem;
  height: 1px;
  background: var(--text-muted);
}

.section-label.accent { color: var(--accent); }
.section-label.accent::before { background: var(--accent); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ---------- Hero (pillar + pricing) ---------- */
.page-hero {
  padding: 11rem 0 5rem;
  background: linear-gradient(180deg, rgba(101, 163, 13, 0.05) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 5%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-inner {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.page-hero-eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-hero h1 {
  margin-bottom: 1.5rem;
}

.page-hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Pillar long-form content ---------- */
.pillar-main {
  padding: 4rem 0 6rem;
}

.pillar-content {
  max-width: 760px;
  margin: 0 auto;
}

.pillar-content > * + * {
  margin-top: 1rem;
}

.pillar-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 6rem;
}

.pillar-content h2:first-child {
  margin-top: 0;
}

.pillar-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.pillar-content p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.pillar-content > p:first-of-type {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.pillar-content ul,
.pillar-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.pillar-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.pillar-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pillar-content em {
  font-style: italic;
}

.pillar-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.pillar-content a:hover {
  color: var(--accent);
}

.pillar-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.pillar-content blockquote p { color: inherit; font-size: inherit; line-height: inherit; }

.pillar-content code {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.125em 0.375em;
  background: #f1f5f9;
  border-radius: 4px;
  color: var(--text-primary);
}

.pillar-content pre {
  margin: 1.25rem 0 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-dark);
  color: #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.pillar-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.pillar-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.pillar-content th,
.pillar-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.pillar-content th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* Skip-ahead block */
.skip-ahead {
  margin: 2.5rem auto 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.skip-ahead-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.skip-ahead ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 600px) {
  .skip-ahead ol { columns: 1; }
}

.skip-ahead li {
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  color: var(--text-secondary);
  break-inside: avoid;
}

.skip-ahead a { color: var(--text-secondary); }
.skip-ahead a:hover { color: var(--accent); text-decoration: underline; }

/* Mid-page CTA card */
.mid-cta {
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(101, 163, 13, 0.08), rgba(132, 204, 22, 0.04));
  border: 1px solid rgba(101, 163, 13, 0.25);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.mid-cta p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-primary);
  font-weight: 500;
  flex: 1 1 320px;
  line-height: 1.5;
}

.mid-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  white-space: nowrap;
}

.mid-cta a:hover { color: var(--accent); }

/* FAQ */
.faq-list { margin-top: 1.5rem; }

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-item summary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(0deg);
}

.faq-item .faq-body {
  margin-top: 0.75rem;
}

.faq-item .faq-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq-item .faq-body p + p { margin-top: 0.75rem; }

/* Related reading */
.related-reading {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.related-reading h2 {
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}

.related-reading ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.related-reading li {
  font-size: 1rem;
  color: var(--text-secondary);
}

.related-reading a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-reading a:hover { color: var(--accent); }

/* End-of-page CTA */
.end-cta {
  padding: 6rem 0;
  background: var(--bg-dark);
  text-align: center;
}

.end-cta h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.end-cta p {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}

/* ---------- Pricing page ---------- */
.pricing-summary {
  padding: 4rem 0 2rem;
}

.pricing-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.pricing-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pricing-card p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.pricing-card .pricing-included {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.pricing-card .pricing-included li {
  padding: 0.625rem 0 0.625rem 2rem;
  position: relative;
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.pricing-card .pricing-included li:last-child { border-bottom: none; }

.pricing-card .pricing-included li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2365a30d'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.pricing-section {
  padding: 5rem 0;
}

.pricing-section.alt {
  background: var(--bg-secondary);
}

.pricing-prose {
  max-width: 760px;
  margin: 0 auto;
}

.pricing-prose h2 {
  margin-bottom: 1.5rem;
}

.pricing-prose p + p { margin-top: 1rem; }

.pricing-prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.case-study {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.case-study h2 { margin-bottom: 0.5rem; }

.case-study .case-study-meta {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 600px) {
  .case-study-stats { grid-template-columns: 1fr; }
}

.case-study-stat {
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.case-study-stat .stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.case-study-stat .stat-before {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: var(--text-light);
}

.case-study-stat .stat-after {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: block;
  margin-top: 0.125rem;
}

/* Pricing form */
.request-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.request-form h2 { margin-bottom: 0.75rem; }
.request-form > p { margin-bottom: 1.5rem; color: var(--text-secondary); }

.form-row { margin-bottom: 1.25rem; }

.form-row label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 200ms ease, background 200ms ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(101, 163, 13, 0.12);
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* ---------- Footer (with sitemap-style pillar links) ---------- */
.footer {
  padding: 4rem 0 2.5rem;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-sitemap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .footer-sitemap { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 560px) {
  .footer-sitemap { grid-template-columns: 1fr; gap: 1.75rem; }
}

.footer-sitemap-brand .nav-logo {
  color: #ffffff;
  font-size: 1.375rem;
}

.footer-sitemap-brand p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col-title {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-light);
  transition: color 200ms ease;
  line-height: 1.4;
}

.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-bottom-links a:hover { color: #ffffff; }

.footer-fineprint {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-fineprint p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Focus styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
