/* aff-network — affiliate marketplace (purple/teal, split panels) */
:root {
  --bg: #f8f6fc;
  --surface: #ffffff;
  --text: #1e1033;
  --muted: #6b5f7a;
  --border: #ddd6eb;
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-light: #ede9fe;
  --teal: #14b8a6;
  --teal-light: #ccfbf1;
  --max: 1040px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); text-decoration: underline; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--purple); color: #fff; padding: 0.5rem 1rem; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.site-main { padding-bottom: 3rem; }

.site-header { background: linear-gradient(90deg, var(--purple-dark), var(--purple)); border-bottom: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; min-height: 3.75rem; }
.brand { font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-weight: 500; font-size: 0.88rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,0.3); background: transparent; border-radius: 8px; padding: 0.45rem; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px 0; }

.demo-banner { background: var(--purple-light); border-bottom: 1px solid var(--border); padding: 0.6rem 0; font-size: 0.85rem; color: var(--muted); }

.hero-aff { padding: 3rem 0; background: linear-gradient(135deg, var(--purple-light) 0%, var(--teal-light) 100%); text-align: center; }
.hero-aff h1 { margin: 0 0 0.75rem; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--text); }
.lead { color: var(--muted); margin: 0 auto; font-size: 1.05rem; max-width: 36rem; }
.eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--purple); margin: 0; }

.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 2.5rem 0; }
.panel { border-radius: var(--radius); padding: 2rem; min-height: 200px; }
.panel.pub { background: var(--purple); color: #fff; }
.panel.adv { background: var(--teal); color: #fff; }
.panel h2, .panel h3 { margin: 0 0 0.75rem; font-size: 1.35rem; font-weight: 700; }
.panel p { margin: 0; opacity: 0.9; font-size: 0.92rem; line-height: 1.65; }

.section-block { padding: 2.5rem 0; }
.section-block h2 { font-size: 1.3rem; color: var(--purple-dark); margin: 0 0 0.75rem; }

.faq-block { padding: 2rem 0 2.5rem; }
.faq-block h2 { font-size: 1.25rem; color: var(--purple-dark); margin: 0 0 1rem; }
.faq-block details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.5rem; overflow: hidden; }
.faq-block summary { padding: 1rem 1.15rem; font-weight: 600; cursor: pointer; color: var(--text); list-style: none; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "▾"; float: right; color: var(--purple); }
.faq-block details[open] summary::after { transform: rotate(180deg); display: inline-block; }
.faq-block details p { margin: 0; padding: 0 1.15rem 1rem; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }

.page-hero { padding: 2.5rem 0; background: var(--surface); border-bottom: 1px solid var(--border); text-align: center; }
.page-hero h1 { margin: 0.35rem 0 0.75rem; font-size: clamp(1.5rem, 4vw, 2rem); color: var(--purple-dark); }
.content-section { padding: 2rem 0; }

.prose h2 { font-size: 1.2rem; color: var(--purple-dark); margin-top: 1.5rem; }
.prose p, .prose li { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple); margin: 1rem 0 0.25rem; font-weight: 700; }
.contact-card h2:first-child { margin-top: 0; }
.muted-card { background: var(--purple-light); border-color: transparent; }
.text-link { font-weight: 600; color: var(--purple); }

.site-footer { background: var(--text); color: #c4b5d8; margin-top: 2rem; }
.footer-inner { padding: 2rem 0; }
.footer-brand strong { color: #fff; }
.footer-brand p { margin: 0.35rem 0 0; font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 1rem 0; }
.footer-links a { color: #c4b5d8; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { margin: 0; font-size: 0.8rem; color: #8b7aa0; }
.muted { color: var(--muted); }

.section-head h2 { font-size: 1.3rem; color: var(--purple-dark); margin: 0 0 0.35rem; }
.section-sub { color: var(--muted); margin: 0 0 1.25rem; }
.text-link { color: var(--purple); font-weight: 600; }
.footer-inner { padding: 2rem 0; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.panel:hover { transform: translateY(-2px); transition: transform 0.15s; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.panel.pub { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25); }
.panel.adv { box-shadow: 0 4px 16px rgba(20, 184, 166, 0.25); }
.faq-block details:focus-within { border-color: var(--purple); }

.contact-card p { margin: 0; }
.prose a { color: var(--purple); font-weight: 500; }
.hero-aff .wrap { max-width: 40rem; margin: 0 auto; }

@media (min-width: 721px) {
  .split-panels { min-height: 220px; }
  .panel { display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 0; }
  .split-panels { grid-template-columns: 1fr; }
  .hero-aff { padding: 2rem 0; }
  .panel { min-height: auto; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel:hover { transform: none; }
}

/* Shared utilities & a11y enhancements */
.site-main { min-height: 50vh; }
.header-inner.wrap, .footer-inner.wrap { padding-left: 0; padding-right: 0; }
.site-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.demo-banner strong { font-weight: 700; }
.content-section .prose { max-width: 42rem; }
.page-hero .eyebrow + h1 { margin-top: 0.35rem; }
.contact-grid .contact-card h2 + p { line-height: 1.5; }

@media (prefers-contrast: more) {
  :root { --border: currentColor; }
  .site-header, .site-footer, .contact-card, .deal-card, .saas-card, .catalog-card, .stat-card, .panel, .mod, .link-row { border-width: 2px; }
}

@media print {
  .skip-link, .nav-toggle, .demo-banner, .site-nav { display: none !important; }
  .site-header { position: static; border-bottom: 1px solid #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
}
