/* ============================================================
   Mosaic — Shared Stylesheet
   ============================================================ */

/* ── TOKENS ── */
:root {
  --g0: #080808;
  --g1: #0F0F0F;
  --g2: #161616;
  --g3: #1E1E1E;
  --border: #222222;
  --border-hi: #2E2E2E;

  --text:   #F0EFEC;
  --text-2: #909090;
  --text-3: #4A4A4A;

  --blue:   #5B8EE0;
  --teal:   #2BAA8A;
  --purple: #9B7FD4;
  --orange: #F5A623;

  --cta: #F5A623;
  --cta-fg: #080808;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --nav-h:     64px;
  --max-w:     1080px;
  --px:        clamp(20px, 5vw, 72px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--g0);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: opacity .15s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-cta {
  background: var(--cta);
  color: var(--cta-fg);
  padding: 12px 22px;
  font-size: 15px;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-hi);
  padding: 12px 22px;
  font-size: 15px;
}

/* ── NAV ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--g2); }
.nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px var(--px) 20px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-mobile a:hover { color: var(--text); background: var(--g2); }
.nav-mobile .btn-cta {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}
.nav-mobile.open { display: flex; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── FOOTER ── */
.site-footer {
  background: var(--g1);
  border-top: 1px solid var(--border);
  padding: 40px var(--px);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { gap: 8px; }
.footer-brand .brand-name { font-size: 15px; }
.footer-brand img { width: 24px; height: 24px; border-radius: 5px; }
.footer-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: 6px;
  transition: color .15s;
}
.footer-nav a:hover { color: var(--text-2); }
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.footer-email {
  font-size: 13px;
  color: var(--text-2);
  transition: color .15s;
}
.footer-email:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ── COMMON SECTION ── */
.section {
  padding: clamp(72px, 10vw, 120px) var(--px);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.section-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 48px;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── STORE BADGE ── */
.store-badge {
  display: inline-flex;
}
.store-badge img {
  height: 48px;
  width: auto;
}

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(60px, 8vw, 100px) var(--px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 600px at 65% 40%, rgba(91,142,224,.07) 0%, transparent 70%),
              radial-gradient(ellipse 600px 400px at 30% 80%, rgba(43,170,138,.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.hero-text { z-index: 1; }
.hero-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}
.hero-platform-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.hero-headline {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.05;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 440px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}

/* Mosaic grid */
.hero-visual { position: relative; z-index: 1; }
.hero-grid-wrap {
  background: var(--g1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero-grid-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(91,142,224,.08) 0%, transparent 60%);
}
.hero-grid-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
#mosaic-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 5px;
  width: 100%;
}
.mosaic-tile {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--g3);
  border: 1px solid var(--border-hi);
  opacity: 0;
  transform: scale(0.4);
  animation: tile-appear .22s ease forwards;
}
.mosaic-tile.filled {
  background: var(--tile-color, var(--blue));
  border-color: transparent;
  box-shadow: 0 0 0 0 var(--tile-color, var(--blue));
}
@keyframes tile-appear {
  to { opacity: 1; transform: scale(1); }
}
.hero-grid-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-3);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   HOME — FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--g1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, background .2s;
}
.feature-card:hover {
  background: var(--g2);
  border-color: var(--border-hi);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.feature-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.feature-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ============================================================
   HOME — PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--g1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--orange);
  background: var(--g2);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--cta-fg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.pricing-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup {
  font-size: 20px;
  font-weight: 600;
  vertical-align: super;
}
.pricing-period {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
}
.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}
.pricing-feature-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-feature-check.dim { opacity: .3; }
.pricing-cta {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: opacity .15s, transform .15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.pricing-cta:hover { opacity: .88; transform: translateY(-1px); }
.pricing-cta.cta-filled { background: var(--cta); color: var(--cta-fg); }
.pricing-cta.cta-ghost { background: var(--g3); color: var(--text-2); }

/* ============================================================
   HOME — DOWNLOAD CTA
   ============================================================ */
.download-section {
  padding: clamp(80px, 10vw, 120px) var(--px);
  text-align: center;
}
.download-inner {
  max-width: 560px;
  margin: 0 auto;
}
.download-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 16px;
}
.download-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 36px;
}
.download-badge {
  display: inline-flex;
  transition: opacity .15s, transform .15s;
}
.download-badge:hover { opacity: .85; transform: translateY(-2px); }
.download-badge img { height: 52px; width: auto; }
.download-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}

/* ============================================================
   PROSE (Privacy page)
   ============================================================ */
.page-hero {
  padding: clamp(48px, 7vw, 80px) var(--px) clamp(40px, 5vw, 64px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 12px;
}
.page-date { font-size: 14px; color: var(--text-3); }

.highlight-box {
  background: rgba(91,142,224,.07);
  border: 1px solid rgba(91,142,224,.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.highlight-box p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}

.prose {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--px) clamp(80px, 10vw, 120px);
}
.prose h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin: 40px 0 10px;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 14px;
}
.prose p strong { color: var(--text); font-weight: 600; }
.prose ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.prose ul li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}
.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }
.contact-card {
  background: var(--g1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-card a { color: var(--text); font-weight: 500; }
.contact-card a:hover { color: var(--blue); }

/* ============================================================
   SUPPORT — FAQ
   ============================================================ */
.support-hero {
  padding: clamp(48px, 7vw, 80px) var(--px) clamp(40px, 5vw, 64px);
  max-width: 720px;
  margin: 0 auto;
}
.faq-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--px) clamp(80px, 10vw, 120px);
}
.faq-group { margin-bottom: 48px; }
.faq-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text-2); }
.faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform .2s;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--text); }
.faq-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  padding-bottom: 18px;
}
.faq-body a { color: var(--blue); }
.faq-body a:hover { text-decoration: underline; }

.contact-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--px) clamp(80px, 10vw, 120px);
}
.contact-banner {
  background: var(--g1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-banner-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.contact-banner-text p {
  font-size: 14px;
  color: var(--text-2);
}
.contact-banner .btn-cta { flex-shrink: 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fade-up .5s ease forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: clamp(36px, 8vw, 52px); }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-right { align-items: flex-start; }
  .contact-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}
