/* ============================================================
   DocSanitizer — Shared stylesheet
   Dark brand: Obsidian bg, Charcoal surface, Mint-Cyan accent
   ============================================================ */

:root {
  --bg: #0D0F12;            /* Obsidian */
  --surface: #16191E;       /* Charcoal */
  --surface-2: #1C2026;
  --primary: #00E5A3;       /* Mint Cyan */
  --primary-dim: rgba(0, 229, 163, 0.12);
  --primary-glow: rgba(0, 229, 163, 0.25);
  --text-main: #F1F3F5;     /* High-White */
  --text-muted: #8A92A0;    /* Slate Gray */
  --token-reduction: #38EF7D; /* Neon Green */
  --pii-warning: #FFAB00;   /* Amber Glow */
  --card-border: rgba(0, 229, 163, 0.15);
  --danger: #f87171;
  --radius: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(0, 229, 163, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(129, 140, 248, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, #00b37e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #0D0F12;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #0D0F12;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: #00f0ad;
  box-shadow: 0 6px 28px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-store {
  background: var(--surface-2);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-store:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-store .store-svg {
  flex-shrink: 0;
}

.btn-store .store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-store .store-label small {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-store .store-label strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-store.disabled,
.btn-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  user-select: none;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(28, 32, 38, 0.6);
}

.btn-store.disabled:hover,
.btn-disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.store-soon-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 171, 0, 0.14);
  color: var(--pii-warning);
  border: 1px solid rgba(255, 171, 0, 0.3);
  margin-left: 0.4rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--primary-dim);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, #38ef7d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(22, 25, 30, 0.5);
  padding: 1.5rem 0;
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item .tick {
  color: var(--token-reduction);
  font-weight: 800;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head .eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 163, 0.35);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-dim);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step .step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 1px solid var(--card-border);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Privacy ---------- */
.privacy-card {
  background: linear-gradient(135deg, rgba(0, 229, 163, 0.08) 0%, rgba(129, 140, 248, 0.04) 100%);
  border: 1px solid rgba(0, 229, 163, 0.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.privacy-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.privacy-card p {
  color: #e2e8f0;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

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

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.pricing-card.pro {
  border-color: var(--primary);
  box-shadow: 0 8px 40px var(--primary-glow);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #0D0F12;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.pricing-card .price small {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .price-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-card li {
  position: relative;
  padding-left: 1.5rem;
  color: #d1d5db;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--token-reduction);
  font-weight: 800;
}

.pricing-card li.muted {
  color: var(--text-muted);
}

.pricing-card li.muted::before {
  content: "—";
  color: var(--text-muted);
}

/* ---------- Web app banner ---------- */
.webapp-banner {
  background: linear-gradient(135deg, rgba(0, 229, 163, 0.1) 0%, rgba(129, 140, 248, 0.08) 100%);
  border: 1px solid rgba(0, 229, 163, 0.3);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.webapp-banner .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.webapp-banner h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.webapp-banner p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

/* ---------- App placeholder page ---------- */
.app-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.app-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.app-card .app-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, #00b37e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0D0F12;
  font-weight: 800;
}

.app-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.app-card .status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: var(--pii-warning);
  color: #0D0F12;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.app-card .app-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.app-card .back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.app-card .back-link:hover {
  color: var(--primary);
}

/* ---------- Demo Section ---------- */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.demo-pane {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.badge-reduction {
  background: rgba(56, 239, 125, 0.15);
  color: var(--token-reduction);
  border: 1px solid rgba(56, 239, 125, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.demo-small-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--primary);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.demo-small-btn:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}

.demo-pane textarea {
  width: 100%;
  height: 180px;
  background: transparent;
  border: none;
  padding: 1rem;
  color: var(--text-main);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.demo-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.stat-box small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stat-box strong {
  font-size: 1rem;
  color: var(--primary);
}

.demo-copy-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-stats {
    justify-content: space-between;
  }

  .privacy-card,
  .webapp-banner {
    padding: 2rem 1.25rem;
  }
}