/* ══════════════════════════════════════════════
   Yapplify — Brand Design Tokens & Shared Styles
   Single source of truth for all pages.
   ══════════════════════════════════════════════ */

/* ── Color Tokens ── */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-lighter: #334155;
  --coral: #FF6B6B;
  --coral-dim: rgba(255, 107, 107, 0.12);
  --cyan: #00D4FF;
  --cyan-dim: rgba(0, 212, 255, 0.12);
  --purple: #7B68EE;
  --purple-dim: rgba(123, 104, 238, 0.15);
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --white: #ffffff;
  --gradient: linear-gradient(90deg, var(--coral), var(--purple), var(--cyan));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --border: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(255, 255, 255, 0.02);
}

/* ── Base Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--slate-200);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--coral);
  color: var(--white);
}

a { color: inherit; text-decoration: none; }

/* ── Noise Grain Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 50;
}

/* ── Logo ── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: filter 0.3s ease;
}

.logo:hover { filter: brightness(1.15); }

.logo-mark {
  width: auto;
  height: 32px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark { transform: scale(1.06); }

.logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Subpage Topbar ──
   Used by blog, legal, faq pages (not the main nav) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.back-link {
  color: var(--slate-400);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.35);
  padding-bottom: 0.1rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--cyan); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .topbar { padding: 0.875rem 1.25rem; }
}
