/* ==========================================================================
   Viral Loomy Shorts — shared stylesheet
   Used by: index.html, faq.html, partners.html, terms.html, privacy.html
   Dark neon theme · pure CSS · no external assets
   ========================================================================== */

/* ---------- Optional local label font (falls back to system sans) -------- */
@font-face {
  font-family: 'Bungee';
  src: url('/fonts/Bungee-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ------------------------------------------------- */
:root {
  --bg: #0B0B12;
  --panel: #12121C;
  --panel2: #181826;
  --border: #262640;
  --text: #F2F2F7;
  --muted: #9A9AB0;
  --magenta: #E540A0;
  --cyan: #2BD6E6;
  --yellow: #FFE33E;
  --green: #50E3A4;
  --red: #FF5C7A;

  --radius: 16px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-label: 'Bungee', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 {
  margin: 0 0 .5em;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }

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

/* ---------- Layout helpers ------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 8vw, 92px); }
.section-alt { background: rgba(24, 24, 38, .42); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 5vw, 46px); text-align: center; }
.section-sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); margin: 0; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-label);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 12px;
}

/* Anchor targets sit below the sticky header */
#top, #how, #free, #faq { scroll-margin-top: 88px; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  padding: .78em 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 8px 26px rgba(229, 64, 160, .32); }
.btn-primary:hover { background: #F055AE; box-shadow: 0 10px 32px rgba(229, 64, 160, .45); }

.btn-secondary { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-secondary:hover { background: rgba(43, 214, 230, .1); }

.btn-sm { padding: .52em 1.05em; font-size: .9rem; }
.btn-lg { padding: .92em 1.7em; font-size: 1.03rem; }

/* ---------- Sticky top navigation ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 11, 18, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  padding-block: clamp(44px, 8vw, 96px) clamp(38px, 7vw, 76px);
  text-align: center;
  background:
    radial-gradient(640px 320px at 12% 0%, rgba(229, 64, 160, .16), transparent 65%),
    radial-gradient(760px 360px at 88% 6%, rgba(43, 214, 230, .13), transparent 65%);
  border-bottom: 1px solid var(--border);
}
/* Logo sits LEFT of the H1: centered flex row that wraps on narrow screens */
.hero-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 30px);
  margin-bottom: 16px;
}
.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 0 34px rgba(229, 64, 160, .5), 0 0 74px rgba(43, 214, 230, .32);
}
.hero-heading h1 { margin: 0; max-width: 20ch; }
.hero-sub {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Showcase (horizontal style scroller) -------------------------- */
.showcase { padding-block: clamp(40px, 6vw, 72px); }
.style-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.style-row::-webkit-scrollbar { height: 8px; }
.style-row::-webkit-scrollbar-track { background: transparent; }
.style-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.style-card {
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 10px 12px;
}
.style-thumb {
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.style-label { margin: 10px 2px 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
.style-label .style-name { color: var(--text); }

/* 14 pure-CSS neon gradient styles */
.g1  { background: linear-gradient(160deg, #E540A0, #7A2BD6); } /* magenta -> purple */
.g2  { background: linear-gradient(160deg, #2BD6E6, #2B5CE6); } /* cyan -> blue */
.g3  { background: linear-gradient(160deg, #FFE33E, #FF8A2B); } /* yellow -> orange */
.g4  { background: linear-gradient(160deg, #50E3A4, #1FA0A8); } /* green -> teal */
.g5  { background: linear-gradient(160deg, #FF5C7A, #E540A0); } /* red -> magenta */
.g6  { background: linear-gradient(160deg, #8A4BE0, #2BD6E6); } /* purple -> cyan */
.g7  { background: linear-gradient(160deg, #1FA0A8, #7A2BD6); } /* teal -> purple */
.g8  { background: linear-gradient(160deg, #FF7ACC, #FFE33E); } /* pink -> yellow */
.g9  { background: linear-gradient(160deg, #2B5CE6, #E540A0); } /* blue -> magenta */
.g10 { background: linear-gradient(160deg, #FF8A2B, #FF5C7A); } /* orange -> red */
.g11 { background: linear-gradient(160deg, #2BD6E6, #50E3A4); } /* cyan -> green */
.g12 { background: linear-gradient(160deg, #6A5BFF, #FF7ACC); } /* indigo -> pink */
.g13 { background: linear-gradient(160deg, #FFE33E, #50E3A4); } /* yellow -> green */
.g14 { background: linear-gradient(160deg, #E540A0, #2BD6E6); } /* magenta -> cyan */

/* ---------- Steps (how it works / partners) ------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  display: block;
  margin-bottom: 14px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
  background: linear-gradient(120deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .step-num { background: none; color: var(--cyan); -webkit-text-fill-color: currentColor; }
}
.step-card h3 { margin-bottom: .35em; }
.step-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Free Forever section ------------------------------------------ */
.free-section { background: radial-gradient(720px 380px at 50% 0%, rgba(229, 64, 160, .07), transparent 72%); }

.free-panel {
  max-width: 880px;
  margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
}
.free-list {
  list-style: none;
  margin: 0 0 clamp(24px, 3.5vw, 34px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px 28px;
}
.free-list li { position: relative; padding: 4px 0 4px 26px; font-weight: 600; font-size: .98rem; }
.free-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--green);
  font-weight: 800;
}
.free-cta { text-align: center; }

/* ---------- FAQ accordions ------------------------------------------------ */
.faq-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: start; }
.faq-group-title { font-size: 1.12rem; margin: 0 0 14px; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: 13px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { background: var(--panel2); }
.faq-item summary:focus-visible { outline-offset: -2px; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: .94rem; }
.faq-more { margin: 28px 0 0; text-align: center; font-weight: 700; }

/* ---------- Partners: reasons list ---------------------------------------- */
.why-list { display: grid; gap: 14px; max-width: 780px; margin-inline: auto; }
.why-item {
  display: flex;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.why-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--cyan);
  font-weight: 800;
}
.why-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .94rem; }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .35em; }
.cta-band .section-sub { margin-bottom: 24px; }

/* ---------- Legal pages (terms / privacy) --------------------------------- */
.legal { padding-block: clamp(44px, 7vw, 84px); }
.legal-inner { max-width: 780px; margin-inline: auto; }
.legal h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin-bottom: .35em; }
.legal-date { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.legal h2 { font-size: 1.12rem; margin: 30px 0 8px; }
.legal p { color: var(--muted); font-size: .97rem; }
.legal ul { margin: 0 0 1em; padding-left: 1.25em; color: var(--muted); font-size: .97rem; }
.legal li { margin-bottom: 4px; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 44px 52px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo { width: 24px; height: 24px; border-radius: 6px; }
.footer-tagline { max-width: 620px; margin: 0; color: var(--muted); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-links a { color: var(--muted); font-size: .93rem; font-weight: 600; }
.footer-links a:hover { color: var(--cyan); text-decoration: none; }
.footer-copy { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .faq-groups { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-nav { justify-content: center; }
  .nav-links { justify-content: center; width: 100%; }
}

@media (max-width: 640px) {
  .style-card { width: 148px; }
  .hero-logo { width: 72px; height: 72px; border-radius: 18px; }
  .hero-cta .btn { width: 100%; }
  .nav-links { gap: 6px 14px; }
  .nav-links a { font-size: .9rem; }
  .brand-name { font-size: .95rem; }
}

@media (max-width: 380px) {
  .nav-links { gap: 4px 10px; }
  .nav-links a { font-size: .85rem; }
  .btn { font-size: .93rem; }
  .step-card { padding: 22px 18px; }
  .free-panel { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* real showcase videos (populated from /assets/showcase/manifest.json) */
.style-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}
