/* localize.today — Dark theme base */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --border: #1e1e2e;
  --text: #e0e0e0;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #7eaaff;
  --accent-dim: rgba(126, 170, 255, 0.15);
  --green: #4ade80;
  --green-dim: rgba(74, 222, 128, 0.15);
  --orange: #fb923c;
  --red: #f87171;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

*, *::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.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo img {
  height: 36px;
  display: block;
}

nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

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

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

nav .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav .nav-signin {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

nav .nav-cta {
  background: var(--accent);
  color: #000;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

nav .nav-cta:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

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

.hero .subline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero .terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}

.terminal-dot:nth-child(1) { background: #f87171; }
.terminal-dot:nth-child(2) { background: #fb923c; }
.terminal-dot:nth-child(3) { background: #4ade80; }

.terminal[role="button"] {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.terminal[role="button"]:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.terminal-copy-label {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font);
  transition: color 0.2s;
}

.terminal[role="button"]:hover .terminal-copy-label {
  color: var(--accent);
}

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  overflow-x: auto;
}

.terminal-body .comment { color: var(--text-dim); }
.terminal-body .tag { color: var(--accent); }
.terminal-body .attr { color: var(--green); }
.terminal-body .str { color: var(--orange); }

/* ─── Section base ─────────────────────────────────── */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

section .section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 16px;
}

/* ─── How It Works ─────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Live Demo ────────────────────────────────────── */
.demo-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.demo-area h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.demo-area p {
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.demo-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}

.demo-tab:hover { border-color: var(--accent); color: var(--text); }
.demo-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.demo-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* ─── Configure Section ──────────────────────────── */
.configure-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.configure-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}

.config-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.config-panel h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent);
}

.config-group + .config-group {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.config-group {
  margin-bottom: 20px;
}

.config-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.config-group .lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lang-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-chip:hover { border-color: var(--accent); color: var(--text); }
.lang-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  max-width: 280px;
}

.toggle-row span {
  font-size: 14px;
}

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(18px);
}

.code-output {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.code-header span {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.copy-btn {
  background: var(--accent-dim);
  color: var(--accent);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s;
}

.copy-btn:hover { opacity: 0.8; }

.code-block {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-muted);
  transition: filter 0.3s;
}

.code-block.locked {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.configure-right .code-block {
  font-size: 12px;
}

.configure-right .email-gate-form {
  flex-direction: column;
}

.code-block .tag { color: var(--accent); }
.code-block .attr { color: var(--green); }
.code-block .str { color: var(--orange); }
.code-block .comment { color: var(--text-dim); }

/* ─── Template Chips ──────────────────────────────── */
.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.template-chip:hover { border-color: var(--accent); color: var(--text); }
.template-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ─── Theme Chips ────────────────────────────────── */
.theme-chips {
  display: flex;
  gap: 6px;
}

.theme-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.theme-chip:hover { border-color: var(--accent); color: var(--text); }
.theme-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ─── Position Picker ─────────────────────────────── */
.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 160px;
}

.position-chip {
  padding: 8px;
  border-radius: 6px;
  font-size: 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  text-align: center;
  line-height: 1;
}

.position-chip:hover { border-color: var(--accent); color: var(--text); }
.position-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ─── Widget Preview ───────────────────────────────── */
.widget-preview-frame {
  background: #0e0e16;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.widget-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.widget-preview-url {
  margin-left: 8px;
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.widget-preview-body {
  padding: 32px 28px;
  position: relative;
  min-height: 220px;
}

.widget-preview-body h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.widget-preview-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.wp-text {
  transition: opacity 0.3s;
}

.wp-text.translating {
  opacity: 0.4;
}

/* Widget preview — per-template styles */
#wp-widget-container {
  position: absolute;
  bottom: 16px;
  right: 16px;
}

#wp-widget-container.wp-tpl-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

#wp-widget-container.wp-tpl-dropdown {
  position: absolute;
  top: 12px;
  right: 16px;
  bottom: auto;
}

#wp-widget-container.wp-tpl-pills {
  position: absolute;
  top: 12px;
  right: 16px;
  bottom: auto;
}

#wp-widget-container.wp-tpl-floating {
  position: absolute;
  bottom: 16px;
  right: 16px;
}

/* Select preview */
#wp-widget-container.wp-tpl-select {
  position: absolute;
  top: 12px;
  right: 16px;
  bottom: auto;
}

/* Popup preview */
#wp-widget-container.wp-tpl-popup {
  position: absolute;
  bottom: 16px;
  right: 16px;
}

/* Position variants — all templates */
#wp-widget-container.wp-pos-bottom-right { bottom: 16px; right: 16px; left: auto; top: auto; transform: none; }
#wp-widget-container.wp-pos-bottom-left { bottom: 16px; left: 16px; right: auto; top: auto; transform: none; }
#wp-widget-container.wp-pos-bottom-center { bottom: 16px; left: 50%; right: auto; top: auto; transform: translateX(-50%); }
#wp-widget-container.wp-pos-top-right { top: 12px; right: 16px; left: auto; bottom: auto; transform: none; }
#wp-widget-container.wp-pos-top-left { top: 12px; left: 16px; right: auto; bottom: auto; transform: none; }
#wp-widget-container.wp-pos-top-center { top: 12px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); }

/* Banner: always full-width, position only controls top/bottom */
#wp-widget-container.wp-tpl-banner.wp-pos-top-right,
#wp-widget-container.wp-tpl-banner.wp-pos-top-left,
#wp-widget-container.wp-tpl-banner.wp-pos-top-center {
  top: 0; left: 0; right: 0; bottom: auto; transform: none;
}
#wp-widget-container.wp-tpl-banner.wp-pos-bottom-right,
#wp-widget-container.wp-tpl-banner.wp-pos-bottom-left,
#wp-widget-container.wp-tpl-banner.wp-pos-bottom-center {
  top: auto; bottom: 0; left: 0; right: 0; transform: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
}

/* Menu direction: open downward for top positions (floating) */
#wp-widget-container.wp-pos-top-right .wp-menu,
#wp-widget-container.wp-pos-top-left .wp-menu,
#wp-widget-container.wp-pos-top-center .wp-menu {
  bottom: auto;
  top: 52px;
}

/* Menu alignment: left-side positions */
#wp-widget-container.wp-pos-bottom-left .wp-menu,
#wp-widget-container.wp-pos-top-left .wp-menu {
  right: auto;
  left: 0;
}

/* Menu alignment: center positions */
#wp-widget-container.wp-pos-bottom-center .wp-menu,
#wp-widget-container.wp-pos-top-center .wp-menu {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* Dropdown menu direction: open upward for bottom positions */
#wp-widget-container.wp-tpl-dropdown.wp-pos-bottom-right .wp-menu,
#wp-widget-container.wp-tpl-dropdown.wp-pos-bottom-left .wp-menu,
#wp-widget-container.wp-tpl-dropdown.wp-pos-bottom-center .wp-menu {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

/* Dropdown menu alignment: left-side positions */
#wp-widget-container.wp-tpl-dropdown.wp-pos-top-left .wp-menu,
#wp-widget-container.wp-tpl-dropdown.wp-pos-bottom-left .wp-menu {
  right: auto;
  left: 0;
}

/* Dropdown menu alignment: center positions */
#wp-widget-container.wp-tpl-dropdown.wp-pos-top-center .wp-menu,
#wp-widget-container.wp-tpl-dropdown.wp-pos-bottom-center .wp-menu {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* Light theme preview background */
.widget-preview-body.wp-theme-light {
  background: #f8f8fa;
}

.widget-preview-body.wp-theme-light h4 {
  color: #111;
}

.widget-preview-body.wp-theme-light p {
  color: #555;
}

.wp-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #1a1a2e;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.wp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.wp-btn svg:first-child {
  width: 22px;
  height: 22px;
}

.wp-progress-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.wp-progress-ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.6s, opacity 0.2s;
  opacity: 0;
}

.wp-progress-ring.active circle {
  stroke-dashoffset: 0;
  opacity: 1;
}

.wp-menu {
  position: absolute;
  bottom: 52px;
  right: 0;
  background: #1a1a2e;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  overflow: hidden;
  min-width: 150px;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}

.wp-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wp-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: #ccc;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  font-family: var(--font);
}

.wp-menu-item:hover {
  background: #2a2a4e;
  color: #fff;
}

.wp-menu-item.active {
  color: var(--accent);
  font-weight: 600;
}

.wp-menu-item .wp-check {
  width: 14px;
  flex-shrink: 0;
  opacity: 0;
}

.wp-menu-item.active .wp-check {
  opacity: 1;
}

/* Dropdown preview */
.wp-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1a1a2e;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.15s;
}

.wp-dropdown-trigger:hover { border-color: var(--accent); }

.wp-dropdown-trigger .wp-chevron {
  width: 12px;
  height: 12px;
}

.wp-tpl-dropdown .wp-menu {
  position: absolute;
  top: 100%;
  right: 0;
  bottom: auto;
  margin-top: 4px;
  min-width: 100%;
}

/* Pills preview */
.wp-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wp-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #ccc;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  transition: all 0.15s;
}

.wp-pill:hover { border-color: var(--accent); color: #fff; }
.wp-pill.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

/* Banner preview */
.wp-banner-label {
  color: #ccc;
  font-size: 13px;
}

.wp-banner-lang {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #ccc;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  transition: all 0.15s;
}

.wp-banner-lang:hover { border-color: var(--accent); color: #fff; }
.wp-banner-lang.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

.wp-banner-dismiss {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.wp-banner-dismiss:hover { opacity: 1; }

/* Select preview */
.wp-select-el {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1a1a2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23999' stroke-width='1.5'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #ccc;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 140px;
}

.wp-select-el:hover { border-color: var(--accent); }
.wp-select-el:focus { outline: none; border-color: var(--accent); }
.wp-select-el option { background: #1a1a2e; color: #ccc; }

/* Light variant */
.wp-theme-light .wp-select-el {
  border-color: rgba(0,0,0,0.12);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23555' stroke-width='1.5'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  color: #333;
}

.wp-theme-light .wp-select-el option { background: #fff; color: #333; }

/* Popup preview */
.wp-popup-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 24px;
  border: none;
  background: #1a1a2e;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.wp-popup-trigger:hover { transform: scale(1.04); }
.wp-popup-trigger svg { width: 20px; height: 20px; }

.wp-popup-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
  border-radius: 0 0 10px 10px;
}

.wp-popup-overlay.open { display: flex; }

.wp-popup-panel {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 16px;
  min-width: 200px;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.wp-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.wp-popup-close {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.6;
}

.wp-popup-close:hover { opacity: 1; }

.wp-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.wp-popup-lang {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #ccc;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  text-align: left;
  transition: all 0.15s;
}

.wp-popup-lang:hover { border-color: var(--accent); color: #fff; }
.wp-popup-lang.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

/* Light theme popup preview */
.wp-theme-light .wp-popup-trigger { background: #fff; color: #333; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.wp-theme-light .wp-popup-panel { background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.08); }
.wp-theme-light .wp-popup-header { color: #111; }
.wp-theme-light .wp-popup-lang { border-color: rgba(0,0,0,0.08); color: #555; }
.wp-theme-light .wp-popup-lang:hover { color: #111; }
.wp-theme-light .wp-popup-lang.active { color: #fff; }

/* Light theme overrides for existing previews */
.wp-theme-light .wp-btn { background: #fff; color: #333; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.wp-theme-light .wp-menu { background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.08); }
.wp-theme-light .wp-menu-item { color: #555; }
.wp-theme-light .wp-menu-item:hover { background: #f5f5f5; color: #111; }
.wp-theme-light .wp-dropdown-trigger { background: #fff; color: #333; border-color: rgba(0,0,0,0.12); }
.wp-theme-light .wp-pill { border-color: rgba(0,0,0,0.12); color: #555; }
.wp-theme-light .wp-pill:hover { color: #111; }
.wp-theme-light .wp-pill.active { color: #fff; }
.wp-theme-light .wp-banner-label { color: #555; }
.wp-theme-light .wp-banner-lang { border-color: rgba(0,0,0,0.12); color: #555; }
.wp-theme-light .wp-banner-lang:hover { color: #111; }
.wp-theme-light .wp-banner-lang.active { color: #fff; }
.wp-theme-light#wp-widget-container.wp-tpl-banner { background: #fff; border-bottom-color: rgba(0,0,0,0.08); }

/* ─── Features Grid ────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--accent); }

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Pricing ──────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s;
}

.price-card.featured {
  border-color: var(--accent);
}

.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

.price-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  margin: 12px 0 4px;
}

.price-amount span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
}

.price-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.price-features li::before {
  content: '\2713';
  color: var(--green);
  margin-right: 8px;
  font-weight: 700;
}

.price-features li.no::before {
  content: '\2717';
  color: var(--text-dim);
}

.price-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  text-align: center;
  transition: all 0.2s;
}

.price-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.price-card.featured .price-btn {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.price-card.featured .price-btn:hover { opacity: 0.9; }

/* ─── Comparison Table ─────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 900px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.compare-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td:first-child {
  color: var(--text-muted);
}

.compare-table .yes { color: var(--green); }
.compare-table .no { color: var(--text-dim); }
.compare-table .highlight { color: var(--accent); font-weight: 600; }

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

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

.faq-item summary {
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-item summary:hover { color: var(--accent); }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  padding: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
}

/* ─── Footer ───────────────────────────────────────── */
footer {
  padding: 60px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.footer-links li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-col:last-child .footer-links {
  columns: 1;
}

footer .footer-credit {
  color: var(--text-dim);
  font-size: 13px;
}

footer .footer-credit a { color: var(--text-muted); }
footer .footer-credit a:hover { color: var(--text); }
footer .easter-egg { text-decoration: none; }

/* ─── Prose Content (legal, about) ────────────────── */
.prose {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose h2 {
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5em;
  margin-bottom: 0.25em;
}

.prose p {
  margin-bottom: 0;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(126, 170, 255, 0.4);
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul {
  list-style: none;
  padding: 0;
}

.prose ul li {
  padding: 3px 0 3px 1.5em;
  position: relative;
}

.prose ul li::before {
  content: '\2022';
  color: var(--text-dim);
  position: absolute;
  left: 0.25em;
}

.prose code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.875em;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ─── Instant Badge (hero) ────────────────────────── */
.instant-badge {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

/* ─── Two Tiers ───────────────────────────────────── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}

.tier-card-accent {
  border-color: var(--accent);
}

.tier-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.tier-label-accent {
  background: var(--accent-dim);
  color: var(--accent);
}

.tier-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tier-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.tier-features {
  list-style: none;
  margin-bottom: 24px;
}

.tier-features li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.tier-features li::before {
  content: '\2713';
  color: var(--green);
  margin-right: 8px;
  font-weight: 700;
}

.tier-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.tier-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.tier-btn-accent {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.tier-btn-accent:hover {
  opacity: 0.9;
  color: #000;
}

/* ─── Email Gate ──────────────────────────────────── */
.email-gate {
  padding: 20px 20px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.email-gate-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.email-gate-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.email-gate-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.email-gate-form input:focus {
  border-color: var(--accent);
}

.email-gate-form input::placeholder {
  color: var(--text-dim);
}

.email-gate-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.email-gate-btn:hover {
  opacity: 0.9;
}

.email-gate-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

.email-gate-success {
  color: var(--green);
  font-weight: 600;
}

/* ─── Glow Background ─────────────────────────────── */
.glow-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Table Scroll Wrapper ─────────────────────────── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Layout stacking */
  .steps-grid,
  .features-grid,
  .pricing-grid,
  .tiers-grid {
    grid-template-columns: 1fr;
  }

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

  .configure-right {
    position: static;
  }

  .toggle-row {
    max-width: none;
  }

  /* Nav */
  nav .nav-links { display: none; }

  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }

  .hero .subline {
    font-size: 16px;
  }

  /* Sections */
  section {
    padding: 56px 0;
  }

  section h2 {
    font-size: 24px;
  }

  section .section-sub {
    font-size: 14px;
    margin-bottom: 32px;
  }

  /* Demo tabs — wrap instead of overflow */
  .demo-tabs {
    flex-wrap: wrap;
  }

  .demo-tab {
    font-size: 13px;
    padding: 6px 12px;
  }

  .demo-area {
    padding: 24px 20px;
  }

  .demo-area h3 {
    font-size: 18px;
  }

  /* Comparison table — edge-to-edge scroll on mobile */
  .table-scroll {
    margin: 0 -24px;
    padding: 0 24px;
  }

  .compare-table {
    font-size: 12px;
    min-width: 580px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 8px;
    white-space: nowrap;
  }

  .compare-table td:first-child,
  .compare-table th:first-child {
    position: sticky;
    left: 0;
    background: #0d0d14;
    z-index: 1;
  }

  /* Email gate */
  .email-gate-form {
    flex-direction: column;
  }

  /* Widget preview */
  .widget-preview-body {
    padding: 24px 16px;
    min-height: 180px;
  }

  .widget-preview-body h4 {
    font-size: 16px;
  }

  .widget-preview-body p {
    font-size: 13px;
  }

  /* Features */
  .features-grid {
    gap: 12px;
  }

  .feature-card {
    padding: 20px 16px;
  }

  /* Tiers */
  .tier-card {
    padding: 24px 20px;
  }

  /* FAQ */
  .faq-item summary {
    font-size: 15px;
  }

  /* Footer */
  .footer-nav {
    flex-direction: column;
    gap: 32px;
    text-align: left;
  }

  .footer-links {
    columns: 1;
  }

  /* Code block in right panel */
  .code-block {
    font-size: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 48px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .terminal-body {
    font-size: 12px;
    padding: 14px;
  }

  .demo-area {
    padding: 20px 14px;
  }

  .table-scroll {
    margin: 0 -16px;
  }

  .config-panel {
    padding: 16px;
  }

  .step-card {
    padding: 24px 16px;
  }

  .tier-card {
    padding: 20px 16px;
  }
}
