/* ─── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:         #f5f5f7;
  --surface:    #ffffff;
  --border:     #e0e0e8;
  --text:       #0c0b1d;
  --text-2:     #44435a;
  --muted:      #8b8aa8;
  --sidebar-bg: #16153a;
  --accent:     #6366f1;
  --accent-2:   #4f46e5;
  --accent-bg:  #eef2ff;
  --green:      #059669;
  --radius:     10px;
  --radius-sm:  6px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ─── Type ────────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: .88rem; font-weight: 600; }
h4 { font-size: .82rem; font-weight: 600; }
p  { color: var(--text-2); font-size: .85rem; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600; border: none; cursor: pointer;
  transition: background .15s, transform .12s; white-space: nowrap; text-decoration: none;
}
.btn:hover  { background: var(--accent-2); transform: translateY(-1px); color: #fff; }
.btn:active { transform: none; }
.btn-lg     { padding: 11px 24px; font-size: .9rem; border-radius: var(--radius-sm); }
.btn-ghost  {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text-2);
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 500; border: 1px solid var(--border);
  cursor: pointer; transition: all .15s; white-space: nowrap; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.btn-ghost.btn-lg { padding: 11px 24px; font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   MARKETING PAGE LAYOUT — sidebar left, content right
═══════════════════════════════════════════════════════════════════════════ */
.mkt-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Fixed Left Sidebar ─────────────────────────────────────────────────── */
.mkt-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  overflow-y: auto;
}
.mkt-logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.06em;
  color: #fff; margin-bottom: 4px; text-decoration: none; display: block;
}
.mkt-logo span { color: #818cf8; }
.mkt-tagline { font-size: .68rem; color: rgba(255,255,255,.3); font-weight: 500; margin-bottom: 24px; letter-spacing: .02em; }

.mkt-sep { height: 1px; background: rgba(255,255,255,.07); margin: 16px 0; }

.mkt-nav { display: flex; flex-direction: column; gap: 2px; }
.mkt-nav a {
  font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.45);
  padding: 7px 10px; border-radius: 6px;
  transition: background .12s, color .12s; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.mkt-nav a:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.mkt-nav .nav-icon { width: 16px; text-align: center; font-size: .75rem; opacity: .6; }

.mkt-cta-wrap { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.mkt-try { display: block; text-align: center; padding: 10px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 700; transition: background .15s; text-decoration: none; }
.mkt-try:hover { background: var(--accent-2); color: #fff; }
.mkt-login { display: block; text-align: center; padding: 8px; font-size: .75rem; color: rgba(255,255,255,.35); transition: color .15s; text-decoration: none; }
.mkt-login:hover { color: rgba(255,255,255,.7); }

.mkt-sidebar-stats { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.mkt-stat { display: flex; align-items: baseline; gap: 6px; }
.mkt-stat-n { font-size: .95rem; font-weight: 800; color: rgba(255,255,255,.55); letter-spacing: -.03em; }
.mkt-stat-l { font-size: .65rem; color: rgba(255,255,255,.25); }

/* ─── Main content column ────────────────────────────────────────────────── */
.mkt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, #1e1b4b 0%, #312e81 60%, #3730a3 100%);
  padding: 52px 40px 48px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #a5b4fc; border: 1px solid rgba(129,140,248,.3); background: rgba(99,102,241,.15);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 20px;
}
.hero-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #818cf8; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.hero h1 { color: #fff; margin-bottom: 12px; max-width: 560px; }
.hero-sub { color: rgba(255,255,255,.55); font-size: .88rem; margin-bottom: 28px; max-width: 420px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn-primary-inv {
  padding: 11px 24px; background: #fff; color: var(--accent-2);
  font-size: .9rem; font-weight: 700; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: background .15s, transform .12s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-cta .btn-primary-inv:hover { background: #f0f0ff; transform: translateY(-1px); }
.hero-cta .btn-outline-inv {
  padding: 11px 24px; background: transparent; color: rgba(255,255,255,.75);
  font-size: .9rem; font-weight: 500; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-cta .btn-outline-inv:hover { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); }

/* ─── Bento Grid ──────────────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: 1fr 200px 160px;
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
}

/* Style gallery — spans 2 rows, left */
.bento-gallery {
  grid-row: 1 / 3;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  overflow: hidden;
}
.bento-gallery-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.bento-gallery-header h3 { font-size: .8rem; }
.bento-gallery-header span { font-size: .7rem; color: var(--muted); }
.style-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.style-tile {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color .15s, transform .15s;
  cursor: pointer;
  background: var(--bg);
}
.style-tile img { width: 100%; height: 100%; object-fit: cover; }
.style-tile:hover { border-color: var(--accent); transform: scale(1.04); }
.style-tile-label {
  font-size: .58rem; font-weight: 600; color: var(--muted);
  text-align: center; padding: 3px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Stats cells — top right */
.bento-stat {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.bento-stat-n { font-size: 2rem; font-weight: 900; letter-spacing: -.05em; color: var(--text); line-height: 1; }
.bento-stat-l { font-size: .7rem; color: var(--muted); font-weight: 500; margin-top: 4px; }

.bento-price {
  background: #ecfdf5;
  border-radius: var(--radius);
  border: 1px solid #a7f3d0;
  padding: 18px 16px;
}
.bento-price-n { font-size: 1.8rem; font-weight: 900; color: var(--green); letter-spacing: -.04em; line-height: 1; }
.bento-price-l { font-size: .7rem; color: #065f46; margin-top: 4px; }

/* CTA cell */
.bento-cta {
  grid-column: 2 / 4;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bento-cta-text { color: rgba(255,255,255,.75); font-size: .78rem; }
.bento-cta-text strong { color: #fff; display: block; font-size: .88rem; margin-bottom: 2px; }
.bento-cta .btn-cta-inv {
  background: #fff; color: var(--accent-2); font-size: .78rem; font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius-sm); white-space: nowrap;
  text-decoration: none; flex-shrink: 0; transition: background .15s;
}
.bento-cta .btn-cta-inv:hover { background: #eef2ff; }

/* ─── Features table ──────────────────────────────────────────────────────── */
.feat-section {
  margin: 0 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 12px;
}
.feat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.feat-header h2 { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.feat-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  transition: background .12s;
}
.feat-row:nth-child(odd) { border-right: 1px solid var(--border); }
.feat-row:hover { background: var(--bg); }
.feat-num { font-size: .65rem; font-weight: 700; color: var(--accent); min-width: 20px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.feat-body h4 { font-size: .82rem; margin-bottom: 2px; }
.feat-body p  { font-size: .75rem; color: var(--muted); line-height: 1.45; }

/* ─── How it works ────────────────────────────────────────────────────────── */
.how-section {
  margin: 0 12px;
  background: #0c0b1d;
  border-radius: var(--radius);
  padding: 24px 24px;
  display: grid;
  grid-template-columns: 140px 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 12px;
}
.how-label { font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.25); letter-spacing: .12em; text-transform: uppercase; padding-top: 4px; }
.how-step { border-left: 1px solid rgba(255,255,255,.08); padding-left: 20px; }
.how-n  { font-size: 2rem; font-weight: 900; color: rgba(99,102,241,.3); letter-spacing: -.06em; line-height: 1; margin-bottom: 8px; }
.how-step h4 { color: #fff; font-size: .82rem; margin-bottom: 4px; }
.how-step p  { color: rgba(255,255,255,.38); font-size: .75rem; line-height: 1.5; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-section {
  margin: 0 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 12px;
}
.faq-header-bar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: .7rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; }
details { border-top: 1px solid var(--border); }
details:nth-child(odd)  { border-right: 1px solid var(--border); }
summary {
  padding: 12px 20px; font-weight: 600; font-size: .8rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text); gap: 8px; user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 1rem; font-weight: 400; flex-shrink: 0; }
details[open] summary::after { content: '−'; }
details p { padding: 0 20px 12px; font-size: .78rem; line-height: 1.6; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  margin: 0 12px 12px;
  background: #0c0b1d;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-brand { font-size: .9rem; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.footer-brand span { color: #818cf8; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: .72rem; color: rgba(255,255,255,.35); transition: color .12s; }
.footer-links a:hover { color: rgba(255,255,255,.7); }
.footer p { font-size: .68rem; color: rgba(255,255,255,.2); width: 100%; margin-top: 4px; }

/* ─── Cookie banner ───────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 16px; right: 16px;
  background: #0c0b1d; border-radius: var(--radius);
  padding: 14px 18px; z-index: 999;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  max-width: 360px; width: calc(100% - 32px);
  display: none;
}
.cookie-banner-inner { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner p { font-size: .75rem; color: rgba(255,255,255,.6); margin: 0; }
.cookie-banner a { color: #a5b4fc; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { font-size: .75rem; padding: 6px 14px; }
.cookie-actions .btn-ghost { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.15); font-size: .75rem; padding: 6px 14px; }
.cookie-actions .btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }

/* ─── Legacy nav (auth pages, legal etc.) ────────────────────────────────── */
.nav {
  display: flex; align-items: center;
  padding: 0 24px; height: 52px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.logo { font-size: 1rem; font-weight: 800; letter-spacing: -.05em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2px; flex: 1; margin-left: 20px; }
.nav-links a { font-size: .78rem; font-weight: 500; color: var(--muted); padding: 5px 10px; border-radius: 5px; transition: color .12s, background .12s; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--bg); }
.nav-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-hint { color: var(--muted); font-size: .8rem; }

/* ─── Section separator (legacy) ─────────────────────────────────────────── */
.section-sep { border: none; border-top: 1px solid var(--border); }
.trust-bar { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item { flex: 1; text-align: center; padding: 14px; }
.trust-num  { display: block; font-size: 1.4rem; font-weight: 800; color: var(--text); }
.trust-sep  { width: 1px; background: var(--border); margin: 8px 0; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mkt-sidebar { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-gallery { grid-row: auto; grid-column: 1 / 3; }
  .style-mosaic { grid-template-columns: repeat(6, 1fr); }
  .bento-cta { grid-column: 1 / 3; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-row:nth-child(odd) { border-right: none; }
  .how-section { grid-template-columns: 1fr 1fr; }
  .how-label { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  details:nth-child(odd) { border-right: none; }
  .hero { padding: 36px 20px 32px; }
  .footer { margin: 0 8px 8px; }
  .feat-section, .how-section, .faq-section { margin: 0 8px; margin-bottom: 8px; }
  .bento { padding: 8px; gap: 8px; }
}
