/* Slashprompt landing — single CSS file, zero JS dependencies.
   Variables mirror the extension palette so the two surfaces match.
   Mobile-first, scales up. Dark mode via prefers-color-scheme. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-elev: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #0f1115;
  --text-soft: #4b5563;
  --text-faint: #9ca3af;
  --brand: #6366f1;
  --brand-strong: #4f46e5;
  --brand-soft: #eef2ff;
  --accent: #10b981;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1), 0 32px 80px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1120px;
  --space: 24px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c11;
    --bg-soft: #11141b;
    --bg-elev: #161a23;
    --border: #232733;
    --border-strong: #2f3543;
    --text: #f4f5f7;
    --text-soft: #a8aebb;
    --text-faint: #6b7280;
    --brand: #818cf8;
    --brand-strong: #a5b4fc;
    --brand-soft: #1c1f33;
    --accent: #34d399;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5), 0 32px 80px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); text-decoration: underline; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

kbd {
  font-size: 0.8em;
  padding: 1px 5px;
  background: var(--bg);
  border-bottom-width: 2px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

p { margin: 0 0 16px; color: var(--text-soft); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.brand:hover { text-decoration: none; }

.brand img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}

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

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

.nav .btn {
  font-size: 13px;
  padding: 7px 12px;
}

@media (max-width: 640px) {
  .nav-links .nav-only-desktop { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: white;
}

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

.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -100px 0 auto 0;
  height: 360px;
  background: radial-gradient(closest-side, var(--brand-soft), transparent 70%);
  z-index: -1;
  opacity: 0.6;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  max-width: 760px;
  margin-inline: auto;
}

.hero h1 .accent { color: var(--brand); }

.hero .lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

.hero-foot strong { color: var(--text-soft); }

/* ---------- Demo card ---------- */
.demo-frame {
  max-width: 880px;
  margin: 48px auto 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}

.demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }

.demo-bar .url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
}

.demo-body {
  padding: 36px 36px 28px;
  position: relative;
  min-height: 280px;
}

.fake-input {
  border: 2px solid var(--brand);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

.fake-input .caret::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--brand);
  margin-left: 2px;
  vertical-align: -3px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.fake-dropdown {
  position: absolute;
  left: 36px;
  top: 92px;
  width: 320px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 4px;
  font-size: 13px;
}

.fake-dropdown .row {
  padding: 8px 10px;
  border-radius: 6px;
}

.fake-dropdown .row.active { background: var(--brand-soft); }

.fake-dropdown .row .title { font-weight: 600; color: var(--text); margin-bottom: 2px; }

.fake-dropdown .row .sub {
  color: var(--text-soft);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fake-dropdown .hint {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-faint);
  padding: 6px 8px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}

section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

section .section-lede {
  text-align: center;
  font-size: 17px;
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto 48px;
}

/* ---------- Feature grid ---------- */
.features {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature .glyph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature p { margin: 0; font-size: 14px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 24px 24px 64px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step p { margin: 0; font-size: 14px; }

/* ---------- Privacy band ---------- */
.privacy-band {
  background: linear-gradient(135deg, var(--brand-soft), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 760px) {
  .privacy-band .wrap { grid-template-columns: 1fr; }
}

.privacy-band h2 {
  text-align: left;
  margin-bottom: 16px;
}

.privacy-band .checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-band .checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}

.privacy-band .checks li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 13px;
  margin-top: 1px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  position: relative;
}

.price-card .ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.price-card .price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-card .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.price-card ul li {
  font-size: 14px;
  color: var(--text-soft);
  position: relative;
  padding-left: 22px;
}

.price-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--border-strong);
}

.price-card.featured ul li::before {
  background: var(--brand-soft);
  border-color: var(--brand);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary > span {
  flex: 1;
  min-width: 0;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--text-faint);
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 12px 0 0;
  font-size: 15px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand);
  color: white;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  color: white;
  font-size: clamp(26px, 4vw, 36px);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 16px;
}

.cta-band .btn-primary {
  background: white;
  color: var(--brand-strong);
  border-color: white;
  font-weight: 600;
}

.cta-band .btn-primary:hover {
  background: var(--bg-soft);
  color: var(--brand-strong);
}

.cta-band .btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

/* ---------- Privacy page ---------- */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 0 80px;
}

.doc h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

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

.doc h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 8px;
}

.doc p, .doc li { font-size: 16px; color: var(--text); }

.doc ul { padding-left: 22px; margin-bottom: 16px; }

.doc li { margin-bottom: 6px; }

.doc a { font-weight: 500; }
