/* === aiffiliation Landing Page Styles === */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-accent: #0ea5e9;
  --max-width: 1100px;
  --radius: 8px;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header === */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--color-primary);
}

/* === Hero === */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* === How it Works === */
.how-it-works {
  padding: 4rem 0;
  background: var(--color-bg);
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.how-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
  font-style: italic;
}

/* === Packages === */
.packages {
  padding: 4rem 0;
  background: var(--color-bg-alt);
}

.packages h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.package-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s;
}

.package-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.package-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.package-card ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.package-card li {
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.delivery-time {
  margin: 1rem 0;
  color: var(--color-text-muted);
}

/* === Why Async === */
.why-async {
  padding: 4rem 0;
}

.why-async h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.benefit {
  text-align: center;
  padding: 1.5rem;
}

.benefit h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.benefit p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* === FAQ === */
.faq {
  padding: 4rem 0;
  background: var(--color-bg-alt);
}

.faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.faq-item p {
  color: var(--color-text-muted);
}

/* === Contact === */
.contact {
  padding: 4rem 0;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* === Legal Pages === */
.legal-page {
  padding: 3rem 0;
  max-width: 800px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-page p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.legal-page ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

/* === Footer === */
.site-footer {
  padding: 2rem 0;
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.9rem;
}

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

.footer-copy {
  font-size: 0.85rem;
}

/* === Playbook Page === */
.playbook-page {
  padding: 3rem 0;
  max-width: 800px;
}

.playbook-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.playbook-logo {
  display: block;
}

.playbook-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.playbook-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.playbook-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.playbook-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.playbook-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.playbook-content li {
  margin-bottom: 0.5rem;
}

.playbook-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-style: italic;
  background: var(--color-bg-alt);
  padding: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
}

.playbook-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: 0.85rem; }
}