/* ==========================================================================
   Buzzaboo — site.css  (design system v2, Sept 2026)
   Shared by every public page. The video chat app adds css/chat.css.
   No web fonts: system UI stack (SF Rounded for display on Apple devices).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0c0b09;
  --bg-2: #110f0c;
  --surface: #17150f;
  --surface-2: #1f1c15;
  --surface-3: #29251c;
  --line: rgba(255, 236, 196, 0.085);
  --line-2: rgba(255, 236, 196, 0.16);
  --text: #f7f2e8;
  --text-2: #bdb4a2;
  --text-3: #8c8474;
  --honey: #ffc21a;
  --honey-hi: #ffd456;
  --honey-lo: #e8a600;
  --on-honey: #1d1500;
  --honey-soft: rgba(255, 194, 26, 0.12);
  --honey-line: rgba(255, 194, 26, 0.34);
  --mint: #3ad98e;
  --mint-soft: rgba(58, 217, 142, 0.12);
  --mint-line: rgba(58, 217, 142, 0.32);
  --coral: #ff5d55;
  --coral-soft: rgba(255, 93, 85, 0.12);
  --coral-line: rgba(255, 93, 85, 0.34);
  --sky: #72b4ff;
  --glass: rgba(18, 16, 12, 0.72);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 12px 32px -14px rgba(0, 0, 0, .75);
  --shadow-3: 0 34px 90px -30px rgba(0, 0, 0, .85);
  --glow: 0 10px 40px -8px rgba(255, 194, 26, .45);
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 64px;
  --maxw: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0v16.2M28 97V80.8M0 16.2 28 0l28 16.2v32.4L28 64.8 0 48.6zM28 64.8v16.2L0 97.2M28 81l28 16.2' fill='none' stroke='%23ffc21a' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");

  /* Legacy names still used by inline styles and older scripts */
  --primary: var(--honey);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --text-muted: var(--text-3);
  --accent-red: var(--coral);
  --accent-green: var(--mint);
  --bg-glass: var(--surface-2);
  --bg-card: var(--surface);
  --border-color: var(--line);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --gradient-primary: linear-gradient(135deg, #ffd456 0%, #ffb000 100%);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fffaf0;
  --bg-2: #fbf3e2;
  --surface: #ffffff;
  --surface-2: #fbf4e6;
  --surface-3: #f3e9d4;
  --line: rgba(40, 30, 10, 0.1);
  --line-2: rgba(40, 30, 10, 0.18);
  --text: #19140a;
  --text-2: #5d5443;
  --text-3: #857b67;
  --honey: #ffbd0a;
  --honey-hi: #ffcb3d;
  --honey-lo: #e0a100;
  --honey-soft: rgba(255, 176, 0, 0.14);
  --honey-line: rgba(214, 150, 0, 0.4);
  --mint: #139c5c;
  --mint-soft: rgba(19, 156, 92, 0.1);
  --mint-line: rgba(19, 156, 92, 0.3);
  --coral: #dc3a32;
  --coral-soft: rgba(220, 58, 50, 0.08);
  --coral-line: rgba(220, 58, 50, 0.3);
  --glass: rgba(255, 250, 240, 0.78);
  --shadow-2: 0 12px 32px -16px rgba(60, 40, 0, .28);
  --shadow-3: 0 34px 90px -34px rgba(60, 40, 0, .35);
  --glow: 0 10px 34px -10px rgba(230, 160, 0, .55);
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0v16.2M28 97V80.8M0 16.2 28 0l28 16.2v32.4L28 64.8 0 48.6zM28 64.8v16.2L0 97.2M28 81l28 16.2' fill='none' stroke='%23b37d00' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p a, li a, .link { color: var(--honey); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
[data-theme="light"] p a, [data-theme="light"] li a, [data-theme="light"] .link { color: #9a6a00; }
p a:hover, li a:hover, .link:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .1em .35em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--honey); color: var(--on-honey); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

.sr-only, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; background: var(--honey); color: var(--on-honey); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 780px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }
.section-head { max-width: 700px; margin: 0 auto clamp(28px, 5vw, 48px); text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-title { font-size: clamp(1.75rem, 4.2vw, 2.75rem); }
.section-lead { margin-top: 14px; color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.125rem); }
.main-content { min-height: calc(100vh - var(--header-h) - 200px); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted, .text-muted { color: var(--text-3); }
.text-secondary { color: var(--text-2); }
.hidden { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
  color: var(--honey); background: var(--honey-soft); border: 1px solid var(--honey-line);
  padding: 6px 12px; border-radius: var(--r-pill);
}
[data-theme="light"] .eyebrow { color: #8a5f00; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse-dot 2.2s var(--ease) infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 26, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 194, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 194, 26, 0); } }
.text-honey { color: var(--honey); }
[data-theme="light"] .text-honey { color: #b07a00; }
.highlight {
  background: linear-gradient(transparent 62%, var(--honey-soft) 62%, var(--honey-soft) 92%, transparent 92%);
  color: var(--honey);
}
[data-theme="light"] .highlight { color: #a87200; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font-weight: 700; font-size: .95rem; line-height: 1.1; letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .15s var(--ease), background-color .15s, border-color .15s, box-shadow .2s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--text-3); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { --btn-bg: var(--honey); --btn-fg: var(--on-honey); --btn-bd: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .3); }
.btn-primary:hover { --btn-bg: var(--honey-hi); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--glow); }
.btn-secondary { --btn-bg: var(--surface-2); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn-outline { --btn-bg: transparent; --btn-bd: var(--line-2); }
.btn-danger { --btn-bg: var(--coral); --btn-fg: #fff; --btn-bd: transparent; }
.btn-danger:hover { filter: brightness(1.08); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }
.btn-xl { min-height: 60px; padding: 16px 32px; font-size: 1.125rem; }
.btn-block { display: flex; width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--text-2);
  transition: background-color .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; }

/* Theme toggle shows the icon for the theme you'd switch TO */
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* ---------- Pills, badges, cards ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: .85rem; font-weight: 600; line-height: 1.2;
}
.pill svg { width: 15px; height: 15px; color: var(--honey); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; background: var(--honey-soft); color: var(--honey); border: 1px solid var(--honey-line); }
.badge-mint { background: var(--mint-soft); color: var(--mint); border-color: var(--mint-line); }
.card, .glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.card-pad { padding: clamp(20px, 3vw, 32px); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: .94rem;
}
.notice strong { color: var(--text); }
.notice svg { width: 20px; height: 20px; margin-top: 2px; }
.notice-mint { background: var(--mint-soft); border-color: var(--mint-line); }
.notice-mint svg { color: var(--mint); }
.notice-coral { background: var(--coral-soft); border-color: var(--coral-line); }
.notice-coral svg { color: var(--coral); }
.notice-honey { background: var(--honey-soft); border-color: var(--honey-line); }
.notice-honey svg { color: var(--honey); }

/* ---------- Forms ---------- */
.form-group { display: grid; gap: 7px; margin-bottom: 16px; }
.form-label, label.form-label { font-size: .875rem; font-weight: 650; color: var(--text-2); }
.form-input, .form-select, textarea.form-input, select.form-input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.35;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.form-input { min-height: 140px; resize: vertical; }
.form-input::placeholder { color: var(--text-3); }
.form-input:hover { border-color: var(--text-3); }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 4px var(--honey-soft); }
select.form-input, .form-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a89f8c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.form-hint { font-size: .8rem; color: var(--text-3); }
.form-error { font-size: .85rem; color: var(--coral); }
input[type="checkbox"] { accent-color: var(--honey); width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 850; font-size: 1.28rem; letter-spacing: -0.035em; color: var(--text); }
.brand__mark { width: 32px; height: 32px; }
.brand:hover .brand__mark { transform: rotate(-8deg); }
.brand__mark { transition: transform .35s var(--ease); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.site-nav a {
  padding: 8px 13px; border-radius: var(--r-pill);
  font-size: .925rem; font-weight: 650; color: var(--text-2);
  transition: color .15s, background-color .15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
body[data-page="chat"] .site-nav a[data-nav="chat"],
body[data-page="safety"] .site-nav a[data-nav="safety"],
body[data-page="premium"] .site-nav a[data-nav="premium"],
body[data-page="clips"] .site-nav a[data-nav="clips"] { color: var(--text); background: var(--surface-2); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.auth-buttons, .user-menu { align-items: center; gap: 8px; }
.auth-buttons { display: flex; }
.user-menu .user-name { font-size: .875rem; font-weight: 650; color: var(--text-2); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="chat"] .header-cta { display: none; }

.nav-mobile { display: none; position: relative; }
.nav-mobile > summary { list-style: none; }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile__panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-3); padding: 8px; display: grid; gap: 2px;
  animation: pop-in .18s var(--ease);
}
.nav-mobile__panel a { padding: 11px 12px; border-radius: 10px; font-weight: 650; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.nav-mobile__panel a:hover { background: var(--surface-2); color: var(--text); }
.nav-mobile__panel hr { margin: 6px 4px; }
.nav-mobile__btn { display: none; text-align: left; padding: 11px 12px; border-radius: 10px; border: 0; background: transparent; font-weight: 650; color: var(--text-2); }
.nav-mobile__btn:hover { background: var(--surface-2); color: var(--text); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-mobile { display: block; }
  .site-header .auth-buttons, .site-header .user-menu .user-name { display: none !important; }
}
@media (max-width: 520px) {
  .site-header .theme-toggle { display: none; }
  .nav-mobile__btn { display: block; }
  .site-header__inner { gap: 10px; }
  .brand { font-size: 1.2rem; }
}
@media (max-width: 340px) {
  .brand__name { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 32px; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer__brand p { margin-top: 12px; color: var(--text-3); font-size: .9rem; max-width: 300px; }
.site-footer h2 { font-family: var(--font); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer li a { color: var(--text-2); font-size: .925rem; text-decoration: none; }
.site-footer li a:hover { color: var(--text); }
.site-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--text-3); font-size: .85rem; }
.site-footer__bottom a { color: var(--text-3); }
.site-footer__bottom a:hover { color: var(--text); }
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Ad / affiliate slots (filled by monetization-service.js) ---------- */
.ad-slot:empty { display: none; }
.ad-slot { max-width: 760px; margin: 24px auto; }
.affiliate-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.affiliate-banner-icon { font-size: 1.5rem; }
.affiliate-banner-content { flex: 1; min-width: 0; }
.affiliate-banner-headline { font-weight: 750; }
.affiliate-banner-sub { font-size: .85rem; color: var(--text-2); }
.affiliate-banner-cta { color: var(--honey); font-weight: 800; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open, .modal[open] { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 2, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .2s ease; }
.modal__card {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  padding: 26px; box-shadow: var(--shadow-3); animation: rise-in .28s var(--ease);
}
.modal__close { position: absolute; top: 14px; right: 14px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.toast-host { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 500; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2);
  padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-3);
  font-weight: 650; font-size: .95rem; animation: rise-in .25s var(--ease);
}
.toast svg { width: 18px; height: 18px; color: var(--honey); }

/* ---------- Prose (legal + long-form pages) ---------- */
.page-hero { padding: clamp(44px, 7vw, 80px) 0 clamp(20px, 3vw, 32px); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.page-hero p { margin-top: 12px; color: var(--text-2); font-size: 1.06rem; max-width: 640px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.prose { max-width: 760px; color: var(--text-2); font-size: 1.02rem; line-height: 1.75; padding-bottom: 72px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { color: var(--text); font-size: 1.45rem; margin-top: 2.1em; letter-spacing: -0.015em; }
.prose h3 { color: var(--text); font-size: 1.12rem; margin-top: 1.7em; letter-spacing: -0.01em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--honey); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); }
.prose .updated, .last-updated { font-size: .9rem; color: var(--text-3); }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--honey); border-radius: var(--r-sm); padding: 14px 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.toc a { font-size: .85rem; font-weight: 650; color: var(--text-2); padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); text-decoration: none; }
.toc a:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Legal documents (terms, privacy, guidelines) ---------- */
.legal-document { max-width: 780px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 0 88px; color: var(--text-2); font-size: 1.02rem; line-height: 1.75; }
.legal-document > h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); color: var(--text); }
.legal-document > h1 + p { margin-top: 8px; color: var(--text-3); font-size: .92rem; }
.legal-document .glass-card { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; margin-top: 2.2em; color: inherit; }
.legal-document .glass-card + .glass-card { border-top: 1px solid var(--line); padding-top: 2.2em; }
.legal-document h2 { font-size: 1.4rem; color: var(--text); letter-spacing: -0.015em; margin-bottom: .6em; }
.legal-document h3 { font-size: 1.1rem; color: var(--text); margin: 1.5em 0 .5em; }
.legal-document p + p, .legal-document p + ul, .legal-document ul + p, .legal-document p + ol { margin-top: .9em; }
.legal-document ul, .legal-document ol { padding-left: 1.3em; margin-top: .6em; }
.legal-document li + li { margin-top: .45em; }
.legal-document li::marker { color: var(--honey); }
.legal-document strong { color: var(--text); }
.legal-document a { color: var(--honey); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="light"] .legal-document a { color: #9a6a00; }
.legal-document table { width: 100%; border-collapse: collapse; font-size: .94rem; margin-top: 1em; }
.legal-document th, .legal-document td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-document th { color: var(--text); }

/* ---------- Homepage ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--honeycomb); background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -140px;
  background: radial-gradient(closest-side, rgba(255, 194, 26, .16), transparent 70%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; margin-top: 18px; }
.hero__title .highlight { white-space: nowrap; }
.hero__sub { margin-top: 20px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-2); max-width: 560px; line-height: 1.55; }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__fine { margin-top: 14px; font-size: .9rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero__fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero__fine svg { width: 15px; height: 15px; color: var(--mint); }
.hero .pill-row { margin-top: 28px; }
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__fine, .hero .pill-row { justify-content: center; }
  .hero::after { right: 50%; transform: translateX(50%); top: auto; bottom: -300px; }
}
@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
  .hero .pill-row { display: none; }
}

/* Product mock (pure CSS/SVG, no images) */
.mock { position: relative; width: min(100%, 400px); margin-inline: auto; }
.mock__phone {
  position: relative; aspect-ratio: 9 / 17.5; border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2c281f, #0d0c09 60%);
  box-shadow: 0 0 0 1px rgba(255, 236, 196, .12), var(--shadow-3), 0 40px 120px -40px rgba(255, 194, 26, .35);
}
[data-theme="light"] .mock__phone { background: linear-gradient(160deg, #3a3326, #16130d 60%); }
.mock__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #0b0a08; container-type: inline-size; }
.mock__remote { position: absolute; inset: 0; }
.mock__remote svg, .mock__pip svg { width: 100%; height: 100%; }
.mock__mask {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  font-size: 110px; font-size: 44cqw; line-height: 1; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
  animation: mask-cycle 9s var(--ease) infinite;
}
.mock__count {
  position: absolute; left: 50%; top: 61%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(10, 9, 7, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-weight: 700; font-size: .82rem; padding: 7px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.12);
  animation: count-cycle 9s var(--ease) infinite;
}
.mock__count b { color: var(--honey); font-variant-numeric: tabular-nums; }
.mock__top { position: absolute; top: 16px; left: 14px; right: 14px; display: flex; gap: 6px; }
.mock__chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: #fff;
  background: rgba(10, 9, 7, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); padding: 5px 9px; border-radius: var(--r-pill);
}
.mock__chip .live { width: 7px; height: 7px; border-radius: 50%; background: #3ad98e; }
.mock__pip {
  position: absolute; right: 14px; top: 54px; width: 30%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.18); box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.mock__chat { position: absolute; left: 12px; right: 12px; bottom: 88px; display: grid; gap: 7px; }
.mock__bubble {
  max-width: 78%; font-size: .82rem; font-weight: 600; line-height: 1.35; padding: 8px 12px; border-radius: 16px;
  opacity: 0; transform: translateY(8px);
  animation: bubble-cycle 9s var(--ease) infinite;
}
.mock__bubble--them { background: rgba(20, 18, 14, .72); color: #fff; border: 1px solid rgba(255,255,255,.1); border-bottom-left-radius: 6px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mock__bubble--me { justify-self: end; background: var(--honey); color: var(--on-honey); border-bottom-right-radius: 6px; animation-name: bubble-cycle-2; }
.mock__controls {
  position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 7px;
  padding: 8px; border-radius: 24px; background: rgba(12, 11, 8, .7); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mock__ctl { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.mock__ctl svg { width: 17px; height: 17px; }
.mock__next { margin-left: auto; height: 38px; padding: 0 16px; border-radius: 19px; background: var(--honey); color: var(--on-honey); font-weight: 800; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.mock__sticker {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); padding: 9px 13px; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 700; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.mock__sticker svg { width: 16px; height: 16px; color: var(--honey); }
.mock__sticker--a { left: -44px; top: 22%; }
.mock__sticker--b { right: -36px; top: 49%; animation-delay: -2s; }
.mock__sticker--c { left: -24px; bottom: 16%; animation-delay: -4s; }
.mock__sticker--b svg { color: var(--mint); }
@media (max-width: 1100px) { .mock__sticker--a { left: -12px; } .mock__sticker--b { right: -10px; } .mock__sticker--c { left: -6px; } }
@media (max-width: 920px) { .mock { width: min(86%, 340px); margin-top: 8px; } }
@media (max-width: 520px) { .mock__sticker { display: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes mask-cycle {
  0%, 44% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  52% { opacity: 0; transform: translate(-50%, -60%) scale(.6); }
  94% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes count-cycle { 0%, 44% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes bubble-cycle { 0%, 54% { opacity: 0; transform: translateY(8px); } 60%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bubble-cycle-2 { 0%, 68% { opacity: 0; transform: translateY(8px); } 74%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mock__count .n { display: inline-block; min-width: .7em; }
.mock__count .n::after { content: "3"; animation: count-num 9s steps(1) infinite; }
@keyframes count-num { 0% { content: "3"; } 14% { content: "2"; } 28% { content: "1"; } 42% { content: "0"; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.step { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step__num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--honey); color: var(--on-honey); font-family: var(--font-display); font-weight: 900; font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.step h3 { margin-top: 18px; font-size: 1.2rem; }
.step p { margin-top: 8px; color: var(--text-2); font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; grid-column: span 2;
  padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 260px;
}
.tile--wide { grid-column: span 3; }
.tile--xl { grid-column: span 4; }
.tile h3 { font-size: 1.22rem; }
.tile p { margin-top: 8px; color: var(--text-2); font-size: .96rem; }
.tile__art { margin-top: auto; padding-top: 22px; }
.tile__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--honey-soft); color: var(--honey); border: 1px solid var(--honey-line); margin-bottom: 18px; }
.tile__icon svg { width: 22px; height: 22px; }
.tile--honey { background: linear-gradient(150deg, #ffd24a, #ffb300); border-color: transparent; color: var(--on-honey); }
.tile--honey p { color: rgba(29, 21, 0, .78); }
.tile--honey .tile__icon { background: rgba(29, 21, 0, .1); color: var(--on-honey); border-color: rgba(29, 21, 0, .15); }
.tile--honey .btn { --btn-bg: var(--on-honey); --btn-fg: #ffd24a; --btn-bd: transparent; margin-top: 18px; align-self: flex-start; }
@media (max-width: 980px) { .tile, .tile--wide, .tile--xl { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile--wide, .tile--xl { grid-column: auto; min-height: 0; } }

.art-pools { display: flex; align-items: center; gap: 10px; }
.art-pool { flex: 1; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.art-pool b { display: block; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.02em; }
.art-pool span { font-size: .8rem; color: var(--text-3); font-weight: 600; }
.art-wall { width: 2px; align-self: stretch; background: repeating-linear-gradient(var(--coral) 0 6px, transparent 6px 11px); border-radius: 2px; }
.art-faces { display: flex; gap: 10px; }
.art-face { flex: 1; aspect-ratio: 1; border-radius: var(--r-md); display: grid; place-items: center; font-size: 2.1rem; background: var(--surface-2); border: 1px solid var(--line); }
.art-face--blur { position: relative; overflow: hidden; }
.art-face--blur::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 40% 40%, #ffb86b, #7a4f2a 70%); filter: blur(10px); transform: scale(1.2); }
.art-face--blur span { position: relative; font-size: 1.4rem; }
.art-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.art-chips span { padding: 6px 11px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; font-weight: 650; color: var(--text-2); }
.art-guess { display: flex; gap: 10px; }
.art-guess span { flex: 1; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); text-align: center; font-weight: 750; font-size: .92rem; }
.art-guess span:first-child { border-color: var(--honey-line); background: var(--honey-soft); }

/* Safety block */
.safety-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: stretch; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist li strong { color: var(--text); display: block; }
.checklist .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); border: 1px solid var(--mint-line); margin-top: 1px; }
.checklist .tick svg { width: 15px; height: 15px; }
.parent-card { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.parent-card h3 { font-size: 1.15rem; }
.parent-card p { color: var(--text-2); font-size: .95rem; }
.parent-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .safety-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.5v9M1.5 6h9' stroke='%23ffc21a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div, .faq details > p { padding: 0 20px 18px; color: var(--text-2); }
.faq details > div > * + * { margin-top: .7em; }

/* Final CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(145deg, #ffd24a 0%, #ffb300 100%); color: var(--on-honey); text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0v16.2M28 97V80.8M0 16.2 28 0l28 16.2v32.4L28 64.8 0 48.6zM28 64.8v16.2L0 97.2M28 81l28 16.2' fill='none' stroke='%23000' stroke-opacity='.08' stroke-width='1.2'/%3E%3C/svg%3E"); background-size: 56px 97px; }
.cta-band h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -0.035em; }
.cta-band p { margin: 12px auto 0; max-width: 540px; font-size: 1.08rem; color: rgba(29, 21, 0, .78); }
.cta-band__actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { --btn-bg: var(--on-honey); --btn-fg: #ffd24a; box-shadow: 0 16px 40px -14px rgba(0,0,0,.55); }
.cta-band .btn-primary:hover { --btn-bg: #000; box-shadow: 0 18px 44px -12px rgba(0,0,0,.6); }
.cta-band .btn-outline { --btn-bd: rgba(29, 21, 0, .35); --btn-fg: var(--on-honey); }
.cta-band .btn-outline:hover { --btn-bg: rgba(29, 21, 0, .08); border-color: rgba(29, 21, 0, .55); }

.prose-block { max-width: 760px; margin-inline: auto; color: var(--text-2); font-size: 1.04rem; }
.prose-block > * + * { margin-top: 1em; }
.prose-block h2 { color: var(--text); }

/* ---------- Premium page ---------- */
.premium-hero { text-align: center; padding: clamp(44px, 7vw, 80px) 0 12px; }
.premium-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); margin-top: 16px; }
.premium-hero .lead { margin-top: 12px; color: var(--text-2); font-size: 1.12rem; }
.premium-card-large {
  max-width: 480px; margin: 28px auto 12px; padding: 32px; text-align: center;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--honey-line);
  box-shadow: var(--shadow-3), 0 0 0 6px var(--honey-soft);
}
.premium-price-big { font-family: var(--font-display); font-size: 3.2rem; font-weight: 900; letter-spacing: -0.04em; color: var(--text); }
.premium-price-big small { font-size: 1rem; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.premium-features-list { list-style: none; text-align: left; display: grid; gap: 12px; margin: 22px 0 26px; }
.premium-features-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); }
.premium-features-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3 4.8 8.8 9.8 3.4' fill='none' stroke='%233ad98e' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--mint-line);
}
.premium-features-list li strong { color: var(--text); }
.premium-btn { width: 100%; }
.premium-fine { margin-top: 16px; font-size: .82rem; color: var(--text-3); }
.signin-required { margin-top: 14px; color: var(--text-2); font-size: .9rem; }
.premium-faq { max-width: 760px; margin: 0 auto; padding: 48px 0 72px; }
.premium-faq h2 { text-align: center; font-size: 1.8rem; margin-bottom: 22px; }
.already-premium { display: none; max-width: 480px; margin: 28px auto 0; padding: 26px; text-align: center; border-radius: var(--r-xl); background: var(--mint-soft); border: 1px solid var(--mint-line); }
.already-premium.show { display: block; }
.state-card { max-width: 480px; margin: 28px auto 0; padding: 26px; text-align: center; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); }
.state-card h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.state-card p { color: var(--text-2); font-size: .94rem; }
.state-card .form-input { margin-bottom: 10px; }

.spinner-lg { width: 38px; height: 38px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--honey-soft); border-top-color: var(--honey); animation: spin .9s linear infinite; }

/* ---------- Clips page ---------- */
.clips-page-head { padding: clamp(36px, 6vw, 64px) 0 20px; }
.clips-page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.clips-page-head p { margin-top: 10px; color: var(--text-2); max-width: 620px; }
.clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding-bottom: 64px; }
.clips-grid:empty, .clips-reels:empty { display: none; }
.clip-card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.clip-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.clip-card-media { position: relative; aspect-ratio: 9 / 12; background: #000; }
.clip-card-thumbnail, .clip-card-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-card-duration { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; font-weight: 700; }
.clip-card-overlay { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.clip-card-time, .clip-card-user { font-size: .82rem; color: var(--text-3); }
.clip-card-user { color: var(--text-2); font-weight: 650; }
.clip-heart-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: .85rem; }
.clip-heart-btn .heart-icon { color: var(--coral); }
.clip-heart-btn.hearted { background: var(--coral-soft); border-color: var(--coral-line); }
.clips-reels { display: none; }
.clips-empty { text-align: center; max-width: 520px; margin: 24px auto 80px; padding: 40px 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px dashed var(--line-2); }
.clips-empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--honey-soft); color: var(--honey); }
.clips-empty-icon svg { width: 30px; height: 30px; }
.clips-empty h2, .clips-empty h3 { font-size: 1.4rem; }
.clips-empty p { margin-top: 8px; color: var(--text-2); }
.clip-modal-overlay { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; background: rgba(5,4,2,.8); padding: 16px; }
.clip-modal-overlay.active { display: flex; }
.clip-modal { position: relative; width: min(92vw, 420px); border-radius: var(--r-xl); overflow: hidden; background: #000; }
.clip-modal video { width: 100%; max-height: 82vh; object-fit: contain; }
.clip-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1rem; }
@media (max-width: 720px) {
  body[data-page="clips"] .clips-grid:not(:empty) { display: none; }
  .clips-reels:not(:empty) { display: block; height: calc(100vh - var(--header-h)); overflow-y: auto; scroll-snap-type: y mandatory; margin-inline: calc(var(--gutter) * -1); }
  .clips-reel-item { position: relative; height: calc(100vh - var(--header-h)); scroll-snap-align: start; background: #000; }
  .reel-video { width: 100%; height: 100%; object-fit: cover; }
  .reel-actions { position: absolute; right: 14px; bottom: 90px; display: grid; gap: 12px; }
  .reel-caption { position: absolute; left: 16px; right: 80px; bottom: 28px; color: #fff; font-weight: 650; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
}

/* ---------- Auth pages (login / signup) ---------- */
.auth-page { background: var(--bg); }
.auth-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.auth-bg-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 194, 26, .14), transparent 70%); }
.auth-bg-grid { position: absolute; inset: 0; background-image: var(--honeycomb); background-size: 56px 97px; -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 10%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 10%, #000, transparent 75%); }
.auth-bg-orb { display: none; }
.auth-container { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 56px; }
.auth-logo { display: none; }
.auth-card { width: 100%; max-width: 440px; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); }
.auth-header { text-align: center; margin-bottom: 22px; }
.auth-title { font-size: 1.9rem; }
.auth-subtitle { margin-top: 6px; color: var(--text-2); }
.auth-message { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: .92rem; font-weight: 600; }
.auth-message-success { background: var(--mint-soft); color: var(--mint); border: 1px solid var(--mint-line); }
.auth-message-error { background: var(--coral-soft); color: var(--coral); border: 1px solid var(--coral-line); }
.auth-social { display: grid; gap: 10px; }
.btn-social { --btn-bg: var(--surface-2); width: 100%; min-height: 50px; }
.btn-social:hover { --btn-bg: var(--surface-3); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-3); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form .form-group { margin-bottom: 14px; }
.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-left: 42px; }
.input-wrapper select.form-input { padding-left: 14px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; width: 18px; height: 18px; }
.input-toggle-password { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-3); border-radius: 8px; }
.input-toggle-password:hover { color: var(--text); background: var(--surface-2); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; font-size: .9rem; }
.form-checkbox { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--text-2); font-size: .9rem; line-height: 1.45; }
.form-checkbox input { margin-top: 2px; flex: none; }
.checkbox-custom { display: none; }
.form-link, .auth-link { color: var(--honey); font-weight: 650; }
[data-theme="light"] .form-link, [data-theme="light"] .auth-link { color: #9a6a00; }
.auth-footer { margin-top: 20px; text-align: center; color: var(--text-2); font-size: .94rem; }
.auth-terms { margin-top: 18px; text-align: center; color: var(--text-3); font-size: .85rem; max-width: 420px; }
.auth-terms a { color: var(--text-2); text-decoration: underline; }
.password-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.strength-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.strength-bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--coral); transition: width .25s, background-color .25s; }
.strength-text { font-size: .78rem; color: var(--text-3); min-width: 60px; text-align: right; }
.btn-loader { align-items: center; }
.spinner { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; padding-bottom: 72px; }
.contact-side { display: grid; gap: 14px; }
.contact-side .card { padding: 22px; }
.contact-side h2 { font-size: 1.05rem; }
.contact-side p { margin-top: 6px; color: var(--text-2); font-size: .93rem; }
.form-status { margin-top: 12px; font-size: .92rem; font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.nf__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; color: var(--honey); }
.nf h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-top: 8px; }
.nf p { margin-top: 10px; color: var(--text-2); }
.nf .btn { margin-top: 24px; }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mock__mask, .mock__count { opacity: 1 !important; }
  .mock__bubble { opacity: 1 !important; transform: none !important; }
}
