/* chattersocial.io — design system
   Typeface: Aeonik (CoType Foundry) — the app's typeface. Palette: the app's colour tokens. */

@font-face { font-family: "Aeonik"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Aeonik-Regular.woff2") format("woff2"); }
@font-face { font-family: "Aeonik"; font-weight: 500 800; font-style: normal; font-display: swap; src: url("/assets/fonts/Aeonik-SemiBold.woff2") format("woff2"); }

:root {
  --font: "Aeonik", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* app palette */
  --bg: #050403;
  --bg-2: #0B0700;
  --surface: #1F1C19;
  --surface-2: #2A2825;
  --ink: #F8F6F2;
  --ink-2: #D5CEC0;
  --ink-3: #908B84;
  --teal: #00CED1;
  --teal-2: #62DEDF;
  --teal-3: #30D6D9;
  --teal-deep: #028385;
  --teal-ink: #003233;
  --live: #FF5A5F;
  --gold: #EDC55C;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --glow: rgba(0, 206, 209, 0.35);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 22px;
  --radius-lg: 32px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.9s;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -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(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
}
body::before { /* film grain */
  content: "";
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: screen;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--teal); text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #001a1a; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2.125rem, 5vw, 4rem); }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }
strong { font-weight: 600; }
p { margin: 0 0 1.2em; }

.accent { color: var(--teal-2); }
.grad { background: linear-gradient(92deg, #62DEDF 0%, #00CED1 55%, #028385 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* eyebrow: "● LIVE ROOMS" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin: 0 0 1.25rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-2);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.6); animation: pulse 2s infinite; }
.eyebrow-dot--teal { background: var(--teal); animation-name: pulse-teal; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(255, 90, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); } }
@keyframes pulse-teal { 0% { box-shadow: 0 0 0 0 rgba(0, 206, 209, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(0, 206, 209, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 206, 209, 0); } }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em;
  color: #012b2c; background: var(--teal);
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:hover { background: var(--teal-2); box-shadow: 0 10px 40px -10px var(--glow); }
.btn:active { transform: scale(0.97); }
.btn--primary { color: #012b2c; background: var(--teal); }
.btn--secondary, .btn--ghost { color: var(--ink); background: var(--glass); border-color: var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--secondary:hover, .btn--ghost:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.28); box-shadow: none; }
.btn--small { padding: 0.65em 1.15em; font-size: 0.9rem; }
.btn--large { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--store { padding: 0.7em 1.35em 0.7em 1.1em; text-align: left; }
.btn--store .icon { width: 1.5em; height: 1.5em; flex: none; }
.btn--store span { display: flex; flex-direction: column; line-height: 1.05; }
.btn--store small { font-size: 0.65em; font-weight: 400; letter-spacing: 0.04em; opacity: 0.75; }

/* ---------- header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal-2), var(--teal)); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, height 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}
.site-header.is-scrolled { height: 64px; background: rgba(5, 4, 3, 0.55); border-bottom-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand .icon-logo { width: 1.55em; height: 1.5em; color: var(--teal-3); transition: transform 0.6s var(--ease-out); }
.brand:hover .icon-logo { transform: rotate(-12deg) scale(1.08); }
.header-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.header-nav a { position: relative; color: var(--ink-2); font-size: 0.95rem; font-weight: 500; padding: 0.35em 0; transition: color 0.25s; }
.header-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease-out); }
.header-nav a:hover, .header-nav a.active { color: var(--ink); }
.header-nav a:hover::after, .header-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.header-nav + .header-actions { margin-left: 0; }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-button span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 899px) {
  .header-nav { display: none; }
  .menu-button { display: flex; }
  .header-cta { display: none; }
}

/* ---------- mobile menu ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 2000; display: none; }
html.nav-open .mobile-nav { display: block; }
html.nav-open, html.nav-open body { overflow: hidden; }
.mobile-nav-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 8px) var(--gutter) 40px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(2, 131, 133, 0.35), transparent 60%), var(--bg);
  animation: fadeIn 0.35s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav-close { position: absolute; top: 16px; right: calc(var(--gutter) - 8px); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.mobile-nav-close .icon { width: 22px; height: 22px; }
.mobile-nav-close .icon path { fill: var(--ink); }
.mobile-menu { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mobile-menu li { opacity: 0; transform: translateY(18px); animation: rise 0.6s var(--ease-out) forwards; animation-delay: calc(0.05s + var(--i, 0) * 0.06s); }
.mobile-menu a { display: block; padding: 0.3em 0; font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -0.035em; color: var(--ink); line-height: 1.1; }
.mobile-menu--small a { font-size: 1.05rem; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }
.mobile-nav-stores { display: flex; flex-direction: column; gap: 0.75rem; margin-top: auto; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- generic sections (policy pages, creator pages, 404) ---------- */
.section { position: relative; display: flex; align-items: center; color: var(--ink); }
.section--first { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px)); }
.section--first::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 70vh; pointer-events: none; background: radial-gradient(60% 50% at 50% 0%, rgba(0, 206, 209, 0.16), transparent 70%); }
.section--h-small { min-height: 33vh; }
.section-inner { position: relative; display: flex; justify-content: center; width: 100%; max-width: var(--container); margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gutter); }
.section-contents { width: 100%; }
@media (min-width: 768px) {
  .section--w-small > .section-inner > .section-contents { width: 50%; }
  .section--w-medium > .section-inner > .section-contents { width: 72%; }
  .section--w-large > .section-inner > .section-contents { width: 100%; }
}
.section--center { text-align: center; }
.section--center .eyebrow { justify-content: center; }
.section--left { text-align: left; }
.section .heading { margin-bottom: 0.5em; }
.section--prose .section-inner { padding-bottom: clamp(48px, 8vw, 120px); }
.section--prose h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

/* rich text (the untouched Quill HTML from the old site) */
.richtext { color: var(--ink-2); line-height: 1.7; word-break: break-word; overflow-wrap: break-word; }
.richtext--small { font-size: 1rem; }
.richtext--medium { font-size: 1.0625rem; }
.richtext--large { font-size: clamp(1.125rem, 1.4vw, 1.3rem); }
.richtext p { margin: 0; }
.richtext strong { color: var(--ink); }
.richtext h1, .richtext h2, .richtext h3, .richtext h4 { margin: 0 0 0.6em; color: var(--ink); }
.richtext h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); padding-top: 0.4em; }
.richtext h3 { font-size: 1.2rem; }
.richtext h2 strong, .richtext h3 strong { color: inherit; }
.richtext ul, .richtext ol { margin: 0 0 1rem; padding-left: 1.4em; }
.section--center .richtext ul, .section--center .richtext ol { padding-left: 0; list-style-position: inside; }
.richtext li { margin: 0.25em 0; padding-left: 0.2em; }
.richtext li::marker { color: var(--teal); }
.richtext a { color: var(--teal-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.2s; }
.richtext a:hover { color: var(--ink); }
.richtext hr { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--line); }
.richtext blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--teal-deep); }
.richtext img, .richtext iframe { max-width: 100%; }
.section--prose .richtext { max-width: 72ch; }
.section--center .richtext h3 { font-size: 1.35rem; margin: 0.35em 0; }
.section--center .richtext h3 a { text-decoration: none; display: inline-block; padding: 0.35em 1em; border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass); transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out); }
.section--center .richtext h3 a:hover { background: var(--glass-2); border-color: var(--teal); transform: translateY(-2px); }
.button-wrapper { margin-top: 1.5rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; } .reveal[data-delay="2"] { transition-delay: 0.2s; } .reveal[data-delay="3"] { transition-delay: 0.3s; } .reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- cursor glow (desktop pointer only) ---------- */
.cursor-glow { position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; background: radial-gradient(circle, rgba(0, 206, 209, 0.13), rgba(0, 206, 209, 0.04) 40%, transparent 65%); transition: opacity 0.6s; will-change: transform; }
@media (hover: hover) and (pointer: fine) { body.has-cursor .cursor-glow { opacity: 1; } }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: clamp(48px, 10vw, 120px); border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 206, 209, 0.05)); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 40px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.brand--footer { font-size: 1.6rem; }
.footer-tagline { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.footer-stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-left: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-top: 1.75rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { color: var(--ink-3); font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--ink); }
.social { display: flex; gap: 0.5rem; margin-left: auto; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out), background 0.25s; }
.social-link:hover { color: var(--ink); border-color: var(--teal); background: rgba(0, 206, 209, 0.08); transform: translateY(-3px); }
.social-link .icon { width: 16px; height: 16px; fill: currentColor; }
.footer-copy { width: 100%; margin: 0; color: var(--ink-3); font-size: 0.85rem; }
@media (max-width: 720px) { .footer-stores { margin-left: 0; width: 100%; } .social { margin-left: 0; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}
