/* Shared styles for the CSS Snap landing page + privacy policy.
   Matches the extension's own dark popup theme (background #18181b,
   indigo/violet accent #6366f1) plus a teal highlight for this marketing
   site specifically. Plain CSS, no build step, no framework. */

:root {
  --bg: #101013;
  --bg-panel: #18181b;
  --bg-card: #1c1c21;
  --border: #2b2b31;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;
  --violet: #6366f1;
  --violet-light: #a5b4fc;
  --violet-dark: #4f46e5;
  --teal: #2dd4bf;
  --teal-dark: #14b8a6;
  --green: #22c55e;
  --red: #dc2626;

  /* Display face carries the headline personality; Inter stays the
     body/UI workhorse; Plex Mono is the "this page is about code" texture
     — used for prices, kickers, and the tooltip mock's CSS syntax. */
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

/* .hero-glow is a fixed-width decorative div, absolutely positioned and
   centered — wider than the viewport on narrow screens. overflow-x needs
   to be set on BOTH html and body: setting it on body alone still left the
   viewport-level (html) scrollbox able to grow to the glow's width in
   testing, so both are clipped explicitly rather than relying on one. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, .nav-logo, .btn, .price-name {
  font-family: var(--font-display);
}

h1, h2 {
  text-wrap: balance;
}

a { color: inherit; }

img, svg { max-width: 100%; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  flex: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a {
  text-decoration: none;
  transition: color 120ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* --- Hero --- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff, var(--violet-light) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

/* --- Mock preview card (pure CSS/SVG, no screenshots) --- */

.preview {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.preview-box {
  width: 96px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  border: 2px dashed rgba(45, 212, 191, 0.7);
  flex: none;
}

.preview-tooltip {
  flex: 1;
  background: #0e0e11;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: 12px/1.6 var(--font-mono);
}

.preview-tooltip .k { color: #f472b6; }
.preview-tooltip .v { color: var(--text); }
.preview-tooltip .muted { color: var(--text-faint); }

/* --- Sections --- */

section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.section-head .kicker {
  font-family: var(--font-mono);
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* --- Features --- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 150ms ease, transform 150ms ease;
}

.feature-card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  color: var(--violet-light);
  margin-bottom: 14px;
  flex: none;
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

.feature-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* --- Pricing --- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--violet);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), var(--bg-card) 60%);
  position: relative;
}

.price-card.featured::before {
  content: "Best value";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.price-amount span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-faint);
}

.price-period {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  flex: 1;
}

.price-features li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.price-features li:first-child {
  border-top: none;
}

.price-note {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
}

/* --- CTA band --- */

.cta {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 72px 0;
}

.cta h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 14px;
}

.cta p {
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* --- Footer --- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-faint);
  transition: color 120ms ease;
}

.footer-links a:hover {
  color: var(--teal);
}

/* --- Simple content page (privacy policy) --- */

.doc {
  padding: 56px 0 80px;
}

.doc h1 {
  font-size: 32px;
  margin-bottom: 6px;
}

.doc .doc-updated {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 19px;
  margin: 36px 0 10px;
  color: var(--violet-light);
}

.doc p, .doc li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.doc code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--teal);
}

.doc ul {
  padding-left: 20px;
}

.doc .back-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
}

.doc .back-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .hero { padding: 56px 0 40px; }
  section { padding: 48px 0; }
  .preview { padding: 20px; }
  .preview-row { flex-direction: column; align-items: stretch; }
  .preview-box { width: 100%; height: 70px; }
}
