/* Fantez marketing site. Plain CSS, no build step. */

:root {
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --bg-sunken: #eef1f6;
  --text: #0b1220;
  --text-muted: #4a5568;
  --border: #dde3ec;
  --brand: #0b1220;
  --accent: #3f6212;          /* lime-800: AA on light backgrounds */
  --accent-strong: #c6f432;   /* signal lime, used on dark surfaces */
  --accent-ink: #0b1220;
  --bubble-me: #1f6feb;
  --bubble-me-text: #ffffff;
  --bubble-them: #eceff4;
  --bubble-them-text: #0b1220;
  --focus: #1f6feb;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 12px 32px -12px rgba(11, 18, 32, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", var(--font-sans);
  color-scheme: light;
}

/* Dark theme is opt-in: <html data-theme="dark">. Light is the default. */
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #070b14;
    --bg-elev: #0e1524;
    --bg-sunken: #0d1422;
    --text: #eef2f8;
    --text-muted: #a3adbd;
    --border: #1f2a3d;
    --brand: #eef2f8;
    --accent: #c6f432;
    --accent-strong: #c6f432;
    --accent-ink: #0b1220;
    --bubble-me: #1a66d6;
    --bubble-me-text: #ffffff;
    --bubble-them: #1b2436;
    --bubble-them-text: #eef2f8;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--bg-elev); color: var(--text);
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border);
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 64px; column-gap: 16px; }
.nav > .logo, .nav > .btn { margin-block: 13px; }
.nav > nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-top: 1px solid var(--border); }
.nav > nav::-webkit-scrollbar { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 10px 0; font-size: 0.9375rem; color: var(--text-muted); white-space: nowrap; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 860px) {
  .nav { flex-wrap: nowrap; height: 64px; }
  .nav > .logo, .nav > .btn { margin-block: 0; }
  .nav > nav { order: 0; width: auto; overflow: visible; border-top: 0; }
  .nav-links { gap: 24px; padding: 0; }
}
section[id] { scroll-margin-top: 112px; }
@media (min-width: 860px) { section[id] { scroll-margin-top: 72px; } }
.label-short { display: none; }
@media (max-width: 359px) { .label-long { display: none; } .label-short { display: inline; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--text) 82%, var(--bg)); }
.btn-ghost { border-color: var(--border); background: var(--bg-elev); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 860px) { section { padding: 104px 0; } }
.section-head { max-width: 680px; margin-bottom: 40px; display: grid; gap: 12px; }
.section-head p { color: var(--text-muted); font-size: 1.0625rem; }
.alt { background: var(--bg-sunken); border-block: 1px solid var(--border); }

/* Hero */
.hero { padding-top: 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } .hero { padding-top: 88px; } }
.hero-copy { display: grid; gap: 20px; }
.hero-copy .lede { font-size: 1.1875rem; color: var(--text-muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-note { font-size: 0.875rem; color: var(--text-muted); }

/* Phone mock */
.phone {
  width: 100%; max-width: 360px; margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 40px; padding: 14px;
  box-shadow: var(--shadow);
}
.phone-screen { border-radius: 28px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.phone-top { display: grid; justify-items: center; gap: 4px; padding: 16px 12px 12px; border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-sunken); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); border: 1px solid var(--border); }
.phone-top .name { font-size: 0.8125rem; font-weight: 600; }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 20px; font-size: 0.9375rem; line-height: 1.4; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; }
.bubble.me { align-self: flex-end; background: var(--bubble-me); color: var(--bubble-me-text); border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--bubble-them); color: var(--bubble-them-text); border-bottom-left-radius: 6px; }
.stamp { align-self: center; font-size: 0.75rem; color: var(--text-muted); margin: 6px 0 2px; }

/* Steps */
.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800; font-size: 0.875rem;
  color: var(--accent);
}
.step p { color: var(--text-muted); }

/* Feature grid */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.card p { color: var(--text-muted); font-size: 0.9375rem; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-sunken); border: 1px solid var(--border); color: var(--text); }
.icon svg { width: 20px; height: 20px; }

/* Privacy band */
.privacy-band { background: #0b1220; color: #eef2f8; }
.privacy-band .section-head p, .privacy-band .card p { color: #b4bdcc; }
.privacy-band .eyebrow { color: #b4bdcc; }
.privacy-band .card { background: #111a2c; border-color: #22304a; }
.privacy-band .icon { background: #0b1220; border-color: #22304a; color: #c6f432; }
.privacy-band :focus-visible { outline-color: #8ab4ff; }

/* Works with */
.platforms { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.platforms li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); font-weight: 600; }
.badge { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-sunken); color: var(--text-muted); border: 1px solid var(--border); }
.badge-live { color: var(--accent); }
.fineprint { margin-top: 16px; font-size: 0.875rem; color: var(--text-muted); max-width: 70ch; }

/* Roadmap */
.roadmap { display: grid; gap: 16px; }
@media (min-width: 960px) { .roadmap { grid-template-columns: repeat(3, 1fr); } }
.lane { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.lane-head { display: flex; align-items: center; justify-content: space-between; }
.lane ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lane li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.lane li strong { font-weight: 600; }
.lane li span { color: var(--text-muted); font-size: 0.9375rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 800px; }
.faq details { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.25rem; line-height: 1; color: var(--text-muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--text-muted); padding-bottom: 18px; }

/* CTA */
.cta { text-align: center; }
.cta-box { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 24px; padding: 48px 24px; display: grid; gap: 16px; justify-items: center; box-shadow: var(--shadow); }
.cta-box p { color: var(--text-muted); max-width: 52ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: 0.875rem; color: var(--text-muted); }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; color: var(--text); }
.footer-nav a:hover { text-decoration: underline; }
.legal-notes { display: grid; gap: 8px; max-width: 80ch; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal article { max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.legal .summary { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.legal .summary ul { margin-bottom: 0; }
.mock-caption { text-align: center; margin: 12px auto 0; }

/* Dark-theme surface overrides (kept last so they win over base rules) */
:root[data-theme="dark"] .privacy-band {
  background: linear-gradient(180deg, #111a2e 0%, #0e1524 100%);
  border-top: 1px solid color-mix(in srgb, #c6f432 35%, transparent);
  border-bottom: 1px solid #1f2a3d;
}
:root[data-theme="dark"] .privacy-band .card { background: #152036; border-color: #273752; }
:root[data-theme="dark"] .logo img { border-radius: 8px; box-shadow: 0 0 0 1px #2a3850; }
