/* Marquee — shared design tokens for Freedom marketing sites */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #14141a;
  --bg-card: #1a1a22;
  --border: #26262e;
  --text: #f5f5f7;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #FF9500;
  --accent-dark: #cc7700;
  --link: #60a5fa;
  --max-width: 720px;
  --content-width: 720px;
  --gap: 24px;
  --radius: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}
.brand-icon { width: 28px; height: 28px; border-radius: 6px; }
.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
}
.site-header nav a { color: var(--text-muted); }
.site-header nav a:hover { color: var(--text); }

@media (max-width: 600px) {
  .site-header nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 56px;
  text-align: center;
}
.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  margin: 0 auto 28px;
  box-shadow: 0 20px 50px rgba(255, 149, 0, 0.18);
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text);
}
.tagline {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 14px;
  line-height: 1.5;
}
.area-served {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.badge {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}
.cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(255, 149, 0, 0.25);
}
.cta-primary:hover {
  background: var(--accent);
  color: #0a0a0a;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 149, 0, 0.35);
}

/* ---------- Email capture ---------- */
.email-capture {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 18px auto 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.email-capture input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.email-capture input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.email-capture button {
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease;
}
.email-capture button:hover { transform: translateY(-1px); }
.email-capture-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.email-capture button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-form-status {
  flex-basis: 100%;
  margin: 8px 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  text-align: center;
  color: var(--text-dim);
}
.lead-form-status.ok { color: #4ade80; }
.lead-form-status.err { color: #f87171; }

/* ---------- Features ---------- */
.features { padding: 56px 0; border-top: 1px solid var(--border); }
.features h2,
.faq h2,
.cta-section h2,
.screenshots h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin-bottom: 32px;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .tagline { font-size: 1.05rem; }
}

/* ---------- Screenshots ---------- */
.screenshots { padding: 56px 0; border-top: 1px solid var(--border); }
.screenshots-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots-row figure {
  flex: 0 0 240px;
  scroll-snap-align: center;
}
.screenshots-row img {
  border-radius: 16px;
  border: 1px solid var(--border);
}
.screenshots-row figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Long-form content (markdown body) ---------- */
.content {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.content .container {
  max-width: var(--content-width);
}
.reading-time {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 48px 0 16px;
  color: var(--text);
  scroll-margin-top: 80px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
  scroll-margin-top: 80px;
}
.content p {
  margin: 16px 0;
  color: #d4d4d8;
  line-height: 1.7;
}
.content ul,
.content ol {
  margin: 16px 0 16px 24px;
  color: #d4d4d8;
}
.content li { margin: 8px 0; line-height: 1.65; }
.content li::marker { color: var(--accent); }
.content strong { color: var(--text); font-weight: 600; }
.content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.content pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.content pre code {
  background: transparent;
  padding: 0;
  color: var(--text);
}
.content blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 18px;
  margin: 20px 0;
  color: var(--text-muted);
  font-style: italic;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}
.content th,
.content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.content th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text);
}
.content a { color: var(--link); text-decoration: underline; }
.content a:hover { color: var(--accent); }
.content .header-anchor {
  color: var(--text-dim);
  text-decoration: none;
  margin-right: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.content h2:hover .header-anchor,
.content h3:hover .header-anchor { opacity: 1; }

/* ---------- FAQ ---------- */
.faq { padding: 56px 0; border-top: 1px solid var(--border); }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq-answer {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ---------- CTA section ---------- */
.cta-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-section p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 0.86rem;
  color: var(--text-dim);
  text-align: center;
}
.footer-links { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--text-dim); }
.copyright a { color: var(--text-muted); }
.disclaimer {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
