/* Astik Flow Automation — store & docs (matches extension UI) */

:root {
  --bg: #08080a;
  --bg-elevated: #0f0f12;
  --surface: #141418;
  --surface-hover: #1a1a20;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --muted: #71717a;
  --accent: #c8a96e;
  --accent-soft: rgba(200, 169, 110, 0.14);
  --accent-glow: rgba(200, 169, 110, 0.35);
  --blue: #6ea8fe;
  --blue-soft: rgba(110, 168, 254, 0.12);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.1);
  --err: #f87171;
  --warn: #fbbf24;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1080px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 169, 110, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(110, 168, 254, 0.05), transparent);
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: #dfc18a; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.site-header {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-select {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  max-width: 120px;
  cursor: pointer;
  font-family: inherit;
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, #a68b4b 100%);
  color: #1a1510;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 16px var(--accent-glow);
  flex-shrink: 0;
}

.logo {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo span,
.logo em {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.02em;
}

.back-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.back-link:hover { color: var(--accent); border-color: rgba(200, 169, 110, 0.35); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  background: linear-gradient(145deg, var(--accent) 0%, #b89550 100%);
  color: #1a1510;
  text-decoration: none;
  border: 1px solid rgba(200, 169, 110, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
  color: #1a1510;
}

/* ── Doc pages ── */
.page { padding: 36px 0 56px; }
.page h1 { font-size: 28px; margin-bottom: 8px; letter-spacing: -0.02em; }
.lead { color: var(--muted); margin-bottom: 28px; font-size: 15px; }

section { margin-bottom: 28px; }
section h2 { font-size: 16px; margin-bottom: 10px; color: var(--text); font-weight: 700; }
section p, section li { color: var(--text-secondary); margin-bottom: 8px; }
section ul, section ol { padding-left: 20px; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

details:hover { border-color: var(--border-strong); }
details summary { cursor: pointer; font-weight: 600; color: var(--text); }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.muted { font-size: 13px; color: var(--muted); }
.footer-note { margin-top: 32px; font-size: 14px; color: var(--text-secondary); }

code {
  font-size: 12px;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent);
}

/* ── Landing ── */
.hero { padding: 48px 0 36px; text-align: center; }

.hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(200, 169, 110, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 24px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent) 0%, #b89550 100%);
  color: #1a1510;
  border: 1px solid rgba(200, 169, 110, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
  color: #1a1510;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(200, 169, 110, 0.4);
  background: var(--accent-soft);
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.stat span { font-size: 11px; color: var(--muted); }

.landing-section { padding: 44px 0; }

.landing-section.alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.landing-section h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 14px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.benefit:hover {
  border-color: rgba(200, 169, 110, 0.35);
  transform: translateY(-2px);
}

.benefit-icon { font-size: 24px; margin-bottom: 8px; }
.benefit h3 { font-size: 14px; margin-bottom: 6px; font-weight: 700; }
.benefit p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(200, 169, 110, 0.35);
  margin-bottom: 10px;
}

.step h3 { font-size: 14px; margin-bottom: 6px; font-weight: 700; }
.step p { font-size: 12px; color: var(--muted); }

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.plan:hover { transform: translateY(-2px); border-color: var(--border-strong); }

.plan.featured {
  border-color: rgba(200, 169, 110, 0.45);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
  box-shadow: 0 0 0 1px rgba(200, 169, 110, 0.15);
}

.plan.ultra { border-color: rgba(167, 139, 250, 0.35); }

.plan-tag {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.plan.featured .plan-tag { color: var(--accent); }

.plan-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }

.plan-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); }

.plan-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  min-height: 36px;
}

.plan ul.include { list-style: none; flex: 1; margin-bottom: 0; }

.plan ul.include li {
  font-size: 12px;
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.45;
  color: var(--text-secondary);
}

.plan ul.include li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.plan .exclude-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan ul.exclude { list-style: none; margin-bottom: 16px; }

.plan ul.exclude li {
  font-size: 11px;
  padding: 3px 0 3px 18px;
  position: relative;
  line-height: 1.45;
  color: var(--muted);
}

.plan ul.exclude li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #52525b;
}

.plan .btn { width: 100%; font-size: 12px; padding: 11px; margin-top: auto; }

.plan .btn.outline-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: default;
  opacity: 0.6;
}

.compare-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  border: 1px solid rgba(110, 168, 254, 0.2);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.compare-note strong { color: var(--text); }

.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  padding: 0 16px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.faq details[open] summary::after { content: '−'; }

.faq p {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 14px;
  line-height: 1.6;
}

.activate-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.activate-box h3 { margin-bottom: 12px; font-size: 16px; }

.activate-box ol {
  text-align: left;
  margin: 14px auto;
  max-width: 400px;
  font-size: 13px;
  color: var(--muted);
  padding-left: 20px;
}

.activate-box li { margin-bottom: 8px; }

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.site-footer .brand-link {
  justify-content: center;
  margin-bottom: 10px;
}

.site-footer p { margin-bottom: 4px; }
