/* Zappr Org – Core styles (minified-friendly structure) */
:root {
  --bg-black: #000;
  --bg-dark: #0a0a0a;
  --bg-pattern: #0d1210;
  --text: #f5f5f5;
  --text-muted: #b8b8b8;
  --accent-purple: #a855f7;
  --accent-cyan: #22d3ee;
  --accent-pink: #ec4899;
  --accent-gold: #facc15;
  --header-bg: #fff;
  --header-text: #111;
  --container: min(1140px, 92vw);
  --section-pad: clamp(3rem, 8vw, 5.5rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-black);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-gold); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--header-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--accent-purple); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-purple);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--header-text);
}

/* Pattern sections */
.pattern-bg {
  background-color: var(--bg-pattern);
  background-image: url("../images/pattern.svg");
  background-repeat: repeat;
  background-size: 120px 120px;
}

.solid-bg { background: var(--bg-black); }

/* Hero */
.hero {
  text-align: center;
  padding: var(--section-pad) 4vw;
}

.hero-logo {
  width: clamp(140px, 28vw, 220px);
  height: auto;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 800;
  max-width: 52ch;
  margin-inline: auto;
}

.hero-lead {
  max-width: 62ch;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn-glow {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent-gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
  transition: background 0.2s, transform 0.2s;
}

button.btn-glow {
  cursor: pointer;
  font-family: inherit;
}

.btn-glow:hover {
  background: rgba(250, 204, 21, 0.12);
  color: var(--text);
  transform: translateY(-2px);
}

/* Two-column features */
.feature-split {
  padding: var(--section-pad) 4vw;
}

.feature-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature-split.reverse .feature-inner {
  direction: rtl;
}

.feature-split.reverse .feature-inner > * {
  direction: ltr;
}

.feature-copy h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.feature-copy p { color: var(--text-muted); margin: 0; }

.feature-media img {
  border-radius: 12px;
  margin-inline: auto;
}

/* Center CTA band */
.cta-band {
  text-align: center;
  padding: var(--section-pad) 4vw;
}

.cta-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 1rem;
  max-width: 40ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 58ch;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
}

/* Article content */
.article-wrap {
  padding: var(--section-pad) 4vw;
}

.article-inner {
  max-width: 780px;
  margin: 0 auto;
}

.article-inner h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  line-height: 1.35;
}

.article-inner h2:first-of-type { margin-top: 0; }

.article-inner h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--accent-cyan);
}

.article-inner p { margin: 0 0 1rem; color: var(--text-muted); }

.article-inner ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--text-muted);
}

.article-inner li { margin-bottom: 0.4rem; }

.article-inner hr {
  border: none;
  border-top: 1px solid #222;
  margin: 2rem 0;
}

.intro-highlight { color: var(--text); }

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 4vw 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: #666;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--accent-gold); }

/* FAQ */
.faq-section {
  padding: var(--section-pad) 4vw;
  background: var(--bg-dark);
}

.faq-inner {
  max-width: 780px;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  margin: 0 0 2rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.faq-item {
  border-bottom: 1px solid #222;
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-gold);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

/* Related links */
.related-block {
  padding: 2rem 4vw var(--section-pad);
  max-width: var(--container);
  margin: 0 auto;
}

.related-block h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.related-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}

.related-card:hover {
  border-color: var(--accent-gold);
  color: var(--text);
}

.related-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent-cyan);
}

.related-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.closing-band {
  text-align: center;
  padding: 2.5rem 4vw;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: #fff;
  color: #333;
  text-align: center;
  padding: 1rem 4vw;
  font-size: 0.875rem;
}

.site-footer a {
  color: #333;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover { background: #1d4ed8; }

/* Subpages */
.page-hero {
  padding: 2.5rem 4vw 1rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}

.page-hero .lead {
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 4vw var(--section-pad);
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content ul {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 4vw;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .feature-inner,
  .feature-split.reverse .feature-inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .feature-media { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-glow { transition: none; }
}
