/* ==========================================================================
   BRIEFCRAFT AI - PREMIUM B2B SAAS DESIGN SYSTEM
   Operated by INTERSAM LLC
   ========================================================================== */

:root {
  /* Surfaces — deep space */
  --bg-dark: #080c15;
  --bg-base: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.55);
  --bg-card-hover: rgba(24, 32, 54, 0.7);
  --bg-elevated: #0f1524;
  --bg-inset: rgba(0, 0, 0, 0.28);
  --border-color: rgba(148, 163, 184, 0.10);
  --border-strong: rgba(148, 163, 184, 0.18);
  --border-glow: rgba(99, 102, 241, 0.40);

  /* Brand — indigo / cyan / violet */
  --primary: #6366f1;
  --primary-hover: #5558ee;
  --primary-light: #a5b4fc;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #67e8f9;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-rose: #f43f5e;
  /* Semantic "warning" severity only (audit findings) — never for brand tags */
  --accent-warn: #f59e0b;
  --accent-amber: var(--accent-warn);

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  --gradient-engine: linear-gradient(90deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.14));
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Typography */
  --text-main: #f1f5f9;
  --text-strong: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --section-y: 64px;
  --section-y-sm: 40px;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 12px 40px -12px rgba(99, 102, 241, 0.45);
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(at 88% 18%, rgba(6, 182, 212, 0.08) 0px, transparent 40%),
    radial-gradient(at 10% 70%, rgba(168, 85, 247, 0.06) 0px, transparent 45%);
  background-attachment: fixed;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1,
h2,
h3,
h4 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

p {
  color: var(--text-muted);
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 21, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  transition: var(--transition-normal);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-brand);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 0 18px rgba(99, 102, 241, 0.35);
}

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

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

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-main);
}

/* Free Tools dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: var(--bg-card, #0d1220);
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(99, 102, 241, 0.12);
}

.nav-dropdown-menu a span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-strong, #fff);
}

.nav-dropdown-menu a small {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.nav-dropdown-menu a:last-child span {
  color: var(--primary-light, #818cf8);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 4px 18px -4px rgba(99, 102, 241, 0.55);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 8px 24px -6px rgba(99, 102, 241, 0.7);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.btn-gradient {
  background: var(--gradient-brand);
  color: #ffffff;
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 6px 22px -6px rgba(99, 102, 241, 0.6);
}

.btn-gradient:hover {
  background-position: 100% 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -8px rgba(168, 85, 247, 0.65);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(165, 180, 252, 0.35);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 56px 0 var(--section-y-sm);
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 18px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.125rem;
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--accent-emerald);
}

/* ==========================================================================
   INTERACTIVE DEMO APPLICATION WORKSPACE
   ========================================================================== */
.demo-section {
  padding: 50px 0 90px;
}

.demo-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 50px rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.demo-header-bar {
  background: var(--bg-elevated);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.demo-controls-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #64748b;
}

.dot-green {
  background: #10b981;
}

.app-live-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Search Bar Area */
.demo-search-box {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.search-input-group {
  display: flex;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.keyword-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.keyword-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.preset-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: var(--text-main);
}

/* Progress Simulation Bar */
.crawl-progress-box {
  display: none;
  padding: 16px 24px;
  background: rgba(99, 102, 241, 0.08);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.crawl-step-text {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  transition: width 0.3s ease;
}

/* Workspace Split Layout */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 580px;
}

/* Left Panel: Content Brief Outline */
.brief-editor-panel {
  padding: 32px;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  max-height: 650px;
}

.brief-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.brief-target-kw {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.brief-target-kw strong {
  color: var(--accent-cyan);
}

.brief-actions {
  display: flex;
  gap: 8px;
}

.outline-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.outline-title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.outline-h2-item {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.outline-h2-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.outline-h2-header {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.tag-h2 {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

.tag-h3 {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.outline-subpoints {
  list-style: none;
  padding-left: 12px;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
  margin-top: 8px;
}

.outline-subpoints li {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  position: relative;
  padding-left: 12px;
}

.outline-subpoints li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Right Panel: The SEO Intelligence Gauge */
.seo-metrics-panel {
  padding: 28px;
  background: rgba(17, 26, 46, 0.4);
}

.score-widget {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: relative;
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: conic-gradient(var(--accent-emerald) 0% 84%, rgba(255, 255, 255, 0.1) 84% 100%);
  position: relative;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.score-circle-inner {
  width: 82px;
  height: 82px;
  background: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.score-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-emerald);
  line-height: 1;
}

.score-label-inner {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.score-rating {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.score-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Metrics Checklist */
.metrics-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.metric-name {
  color: var(--text-muted);
}

.metric-value {
  font-weight: 700;
  color: var(--text-main);
}

.metric-bar-bg {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-top: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}

/* Keywords Checklist */
.kw-checklist-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.kw-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kw-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
}

.kw-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.pill-good {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.pill-low {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
  padding: var(--section-y) 0;
}

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

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-light);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.1rem;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165, 180, 252, 0.45), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.925rem;
}

/* ==========================================================================
   PRICING SECTION (CRITICAL FOR AIRWALLEX & DOOPAYMENT UNDERWRITING)
   ========================================================================== */
.pricing-section {
  padding: var(--section-y) 0;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.billing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.billing-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.billing-label.active {
  color: var(--text-main);
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.toggle-switch.checked {
  background: var(--primary);
}

.toggle-switch.checked::after {
  transform: translateX(24px);
}

.save-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: var(--primary);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.2);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  min-height: 42px;
  margin-bottom: 24px;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-number {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Compliance Assurance Bar under Pricing */
.guarantee-box {
  margin-top: 48px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.guarantee-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guarantee-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.guarantee-text h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.guarantee-text p {
  font-size: 0.85rem;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: var(--section-y) 0;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER (CRITICAL COMPLIANCE SECTION FOR INTERSAM LLC)
   ========================================================================== */
.footer {
  background: #05080e;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 35px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 45px;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

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

.footer-legal-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.825rem;
}

.footer-legal-box strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.footer-legal-box p {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 0.825rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badges {
  display: flex;
  gap: 12px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LEGAL / POLICY PAGES SPECIFIC STYLING
   ========================================================================== */
.legal-page-header {
  padding: 60px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
}

.legal-content-card {
  max-width: 880px;
  margin: 40px auto 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 45px 50px;
}

.legal-content-card h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.legal-content-card h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px;
  color: var(--text-main);
}

.legal-content-card p,
.legal-content-card ul {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content-card ul {
  padding-left: 24px;
}

.legal-content-card li {
  margin-bottom: 8px;
}

.entity-highlight {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: var(--text-main);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .brief-editor-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .legal-content-card {
    padding: 24px;
  }
}

/* ==========================================================================
   PRO SAAS EXTENSIONS (Google SSO, Rich Footers, Logical Workflows)
   ========================================================================== */

/* Google SSO Button */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Pricing Toggle */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.billing-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
}

.billing-opt {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.billing-opt.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.discount-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
}

/* Workflow Step Cards */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

@media (max-width: 900px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition-normal);
}

.workflow-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Comparison Table */
.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin: 40px 0;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.pro-table th {
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
}

.pro-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.pro-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

/* Rich Pro Footer */
.pro-footer {
  position: relative;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.6) 0%, #05070d 40%);
  border-top: 1px solid var(--border-color);
  padding: 52px 0 28px;
  margin-top: var(--section-y-sm);
}

.pro-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), rgba(6, 182, 212, 0.6), transparent);
}

/* Footer Newsletter Band */
.footer-newsletter-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.14), transparent 60%), var(--bg-card);
}

.footer-newsletter-copy {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
}

.footer-newsletter-copy strong {
  color: var(--text-strong);
}

.footer-newsletter-band .newsletter-form input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-strong);
  font-size: 13.5px;
}

@media (max-width: 768px) {
  .footer-newsletter-band {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-newsletter-band .newsletter-form input {
    flex: 1 1 100%;
  }
}

/* Footer Newsletter Banner */
.footer-newsletter-wrap {
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%), var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.footer-newsletter-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(6, 182, 212, 0.5), transparent);
}

.footer-newsletter-content {
  flex: 1 1 380px;
}

.footer-newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  color: var(--primary-light);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.footer-newsletter-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.footer-newsletter-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.footer-newsletter-form {
  flex: 0 1 420px;
  width: 100%;
}

.footer-newsletter-input-group {
  display: flex;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 5px 6px;
  transition: var(--transition-fast);
}

.footer-newsletter-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.footer-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.footer-newsletter-input::placeholder {
  color: var(--text-dim);
}

.footer-newsletter-btn {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.footer-newsletter-msg {
  font-size: 12.5px;
  margin-top: 8px;
  min-height: 18px;
  transition: var(--transition-fast);
}

.footer-newsletter-msg.success {
  color: #34d399;
}

.footer-newsletter-msg.error {
  color: #f87171;
}

@media (max-width: 768px) {
  .footer-newsletter-wrap {
    padding: 24px 20px;
    gap: 20px;
  }

  .footer-newsletter-input-group {
    flex-direction: column;
    padding: 8px;
    background: transparent;
    border: none;
    gap: 10px;
  }

  .footer-newsletter-input {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
  }

  .footer-newsletter-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
}

.pro-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 1024px) {
  .pro-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .pro-footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
}

.footer-col-links a:hover {
  color: #ffffff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  margin-top: 16px;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
  animation: status-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes status-ping {

  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-legal-bar a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal-bar a:hover {
  color: var(--text-strong);
}

.footer-trust {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   v2 DESIGN LAYER — Linear / Vercel-grade components
   ========================================================================== */

/* Section rhythm */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-tight {
  padding: var(--section-y-sm) 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.section-header h2 {
  font-size: 2.1rem;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 10px;
}

/* Proprietary engine badge (replaces all third-party / amber tags) */
.engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gradient-engine);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.engine-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan-light);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.engine-label {
  color: var(--accent-cyan-light);
  font-weight: 700;
}

/* Feature cards (index) */
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-light);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(6, 182, 212, 0.10));
  border: 1px solid rgba(129, 140, 248, 0.25);
}

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

.feature-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Pricing card internals (index + pricing) */
.pricing-tier-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  line-height: 1.1;
  margin-bottom: 8px;
}

.pricing-cycle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 2px;
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 42px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.pricing-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 26px;
}

/* Comparison table — highlight BriefCraft column */
.pro-table th.col-brand,
.pro-table td.col-brand {
  background: rgba(99, 102, 241, 0.07);
  color: var(--text-strong);
}

.pro-table th.col-brand {
  color: var(--primary-light);
}

.pro-table tr:last-child td {
  border-bottom: none;
}

.yes {
  color: var(--accent-emerald-light);
  font-weight: 600;
}

.no {
  color: var(--text-dim);
}

/* Hero: inline instant-onboarding strip */
.hero-onboard {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-onboard .btn-google {
  width: auto;
  padding: 12px 20px;
}

.hero-onboard-note {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.hero-onboard-note a {
  color: var(--text-muted);
}

/* Sandbox result states */
.sandbox-status {
  font-size: 12.5px;
  color: var(--text-muted);
  min-height: 18px;
  margin-top: 10px;
}

.sandbox-status.error {
  color: #fda4af;
}

.metric-val.good {
  color: var(--accent-emerald-light);
}

.metric-val.mid {
  color: var(--accent-warn);
}

.metric-val.bad {
  color: #fb7185;
}

.metric-val.info {
  color: var(--accent-cyan-light);
}

/* Compact docked footer bar (dashboard / app shells) */
.app-footer-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 10px 32px;
  margin-top: auto;
  background: rgba(8, 12, 21, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-dim);
}

.app-footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.app-footer-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.app-footer-bar a:hover {
  color: var(--text-strong);
}

.app-footer-bar .status-pill {
  margin-top: 0;
  padding: 3px 10px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .app-footer-bar {
    position: static;
    padding: 14px 20px;
    justify-content: center;
    text-align: center;
  }
}

@media print {

  .app-footer-bar,
  .pro-footer,
  .navbar {
    display: none !important;
  }
}

/* Mobile gutters */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  :root {
    --section-y: 48px;
    --section-y-sm: 32px;
  }
}

.sandbox-status:empty {
  display: none;
}

@media (max-width: 900px) {
  #launch-package {
    grid-template-columns: 1fr !important;
    text-align: left;
  }
}

@media (max-width: 900px) {
  #launch-package-card {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   v3 — newsletter, content pages, blog
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.newsletter-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
}

.newsletter-copy {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-strong);
  font: inherit;
  font-size: 14px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.newsletter-status {
  flex-basis: 100%;
  font-size: 12.5px;
  margin: 0;
  min-height: 0;
  color: var(--text-muted);
}

.newsletter-status:empty {
  display: none;
}

.newsletter-status[data-state="ok"] {
  color: var(--accent-emerald-light);
}

.newsletter-status[data-state="error"] {
  color: #fda4af;
}

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

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.breadcrumbs li+li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-dim);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text-strong);
}

/* Content page hero */
.page-hero {
  padding: 48px 0 24px;
}

.page-hero h1 {
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 14px;
  max-width: 860px;
}

.page-hero .lede {
  font-size: 1.1rem;
  max-width: 720px;
}

@media (max-width: 640px) {
  .page-hero h1 {
    font-size: 1.9rem;
  }
}

/* Long-form prose (blog, security, guides) */
.prose {
  max-width: 740px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #cbd5e1;
}

.prose h2 {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 40px 0 12px;
  color: var(--text-strong);
  scroll-margin-top: 80px;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
  color: var(--text-strong);
}

.prose p {
  color: #cbd5e1;
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--primary-light);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #c7d2fe;
}

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

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 1px 6px;
  color: #e2e8f0;
}

.prose pre {
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 20px;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #a5f3fc;
}

.prose blockquote {
  border-left: 3px solid var(--primary);
  margin: 0 0 18px;
  padding: 4px 0 4px 18px;
  color: var(--text-muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14.5px;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--border-color);
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  color: var(--text-strong);
}

.callout {
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.10), rgba(6, 182, 212, 0.05));
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 15px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.toc {
  position: sticky;
  top: 84px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--bg-card);
  font-size: 13.5px;
}

.toc-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.toc a:hover {
  color: var(--text-strong);
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

/* Blog cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.post-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.post-card h2,
.post-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--text-strong);
  margin: 0;
}

.post-card p {
  font-size: 14px;
  margin: 0;
  flex: 1;
}

.post-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan-light);
}

.post-foot {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* Generic content cards / steps */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {

  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.content-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

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

.dir-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dir-chip {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.dir-chip small {
  color: var(--text-dim);
  margin-left: 4px;
}

/* FAQ accordion (shared) */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color var(--transition-fast);
}

.faq-list details[open],
.faq-list details:hover {
  border-color: rgba(129, 140, 248, 0.35);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-list summary::after {
  content: "+";
  color: var(--text-dim);
  font-weight: 500;
  transition: transform var(--transition-fast);
}

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

.faq-list p {
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.65;
}

.faq-list a {
  color: var(--primary-light);
}

/* ==========================================================================
   FREE TOOLS SUITE — MODERN SAAS DESIGN SYSTEM
   ========================================================================== */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
  display: inline-block;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tools-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  font-size: 12px;
  font-weight: 700;
  color: #c7d2fe;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Tools Hub Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-hub-card {
  background: radial-gradient(ellipse at 15% 0%, rgba(99, 102, 241, 0.12), transparent 60%),
              radial-gradient(ellipse at 85% 100%, rgba(6, 182, 212, 0.08), transparent 60%),
              rgba(13, 18, 32, 0.75);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
}

.tool-hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tool-hub-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.8),
              0 0 40px -10px rgba(99, 102, 241, 0.35);
}

.tool-hub-card:hover::before {
  opacity: 1;
}

.tool-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-hub-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(6, 182, 212, 0.18));
  border: 1px solid rgba(129, 140, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7d2fe;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.4);
}

.tool-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #a5b4fc;
}

.tool-hub-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.tool-hub-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.tool-hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tool-hub-tag {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.tool-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.35);
  width: fit-content;
  transition: all 0.2s ease;
  margin-top: 6px;
}

.tool-hub-card:hover .tool-hub-btn {
  background: var(--primary);
  border-color: var(--primary-light);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* Trust Banner */
.tools-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

@media (max-width: 768px) {
  .tools-trust-grid {
    grid-template-columns: 1fr;
  }
}

.tools-trust-item {
  background: rgba(13, 18, 32, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tools-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.tools-trust-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.tools-trust-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   INTERACTIVE WORKSPACE & COMMON TOOL CONTROLS
   ========================================================================== */
.tool-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .tool-workspace {
    grid-template-columns: 1fr;
  }
}

.tool-panel {
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08), transparent 75%),
              rgba(13, 18, 32, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
}

.tool-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-top: 0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.01em;
}

.tool-form-group {
  margin-bottom: 18px;
}

.tool-form-group:last-child {
  margin-bottom: 0;
}

.tool-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-input,
.tool-textarea,
.tool-select {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  color: var(--text-strong);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.tool-textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.55;
}

.tool-input:focus,
.tool-textarea:focus,
.tool-select:focus {
  outline: none;
  background: rgba(15, 21, 36, 0.9);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.char-counter {
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.char-good {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.char-warn {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

.char-bad {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.15);
}

/* Tool Tabs */
.tool-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-inset);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.tool-tab {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.tool-tab:hover {
  color: var(--text-strong);
}

.tool-tab.active {
  background: linear-gradient(135deg, var(--bg-elevated), rgba(30, 41, 59, 0.9));
  color: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   FREE SEO CHECKER — MODERN ENGINE STYLES
   ========================================================================== */
.checker-card {
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 75%),
              rgba(13, 18, 32, 0.88);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px 30px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8),
              0 0 70px -15px rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(16px);
}

.checker-form {
  display: flex;
  gap: 12px;
}

.checker-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.checker-input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

.checker-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 15px 16px 15px 44px;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 14.5px;
  transition: all 0.2s ease;
}

.checker-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 21, 36, 0.95);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

.checker-form button {
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .checker-form {
    flex-direction: column;
  }
}

.demo-pills-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.demo-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-pill-btn:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--primary-light);
  color: #ffffff;
}

.sandbox-status {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  min-height: 20px;
}

.sandbox-status.error {
  color: #fb7185;
}

/* Metric Row 4 */
.metric-row4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .metric-row4 {
    grid-template-columns: 1fr 1fr;
  }
}

.m {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%),
              rgba(17, 24, 39, 0.55);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.m:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.m-t {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-v {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.good {
  color: #34d399 !important;
}

.mid {
  color: #fbbf24 !important;
}

.bad {
  color: #fb7185 !important;
}

/* Signals Table & Findings */
.signals-table-wrap {
  width: 100%;
  font-size: 13.5px;
  border-collapse: collapse;
}

.signals-table-wrap tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.signals-table-wrap tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.signals-table-wrap th {
  text-align: left;
  padding: 10px 10px 10px 0;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
}

.signals-table-wrap td {
  padding: 10px 0;
  color: var(--text-main);
  word-break: break-word;
}

.finding {
  border-left: 3px solid var(--border-strong);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
  font-size: 14px;
  transition: background 0.2s ease;
}

.finding:hover {
  background: rgba(255, 255, 255, 0.04);
}

.finding.critical {
  border-left-color: #fb7185;
  background: rgba(244, 63, 94, 0.05);
}

.finding.warning {
  border-left-color: var(--accent-warn);
  background: rgba(245, 158, 11, 0.05);
}

.finding.passed {
  border-left-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.finding strong {
  color: var(--text-strong);
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.finding span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ==========================================================================
   META TAG GENERATOR — PREVIEW CARDS
   ========================================================================== */
.serp-preview {
  background: #ffffff;
  color: #202124;
  border-radius: 14px;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.serp-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4d5156;
  margin-bottom: 8px;
}

.serp-favicon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #1a73e8;
}

.serp-title {
  font-size: 20px;
  line-height: 1.3;
  color: #1a0dab;
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
}

.serp-title:hover {
  text-decoration: underline;
}

.serp-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #4d5156;
  margin: 0;
  word-break: break-word;
}

.social-preview-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.social-preview-img {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-preview-body {
  padding: 16px 18px;
}

.social-preview-domain {
  font-size: 11.5px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.social-preview-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.social-preview-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Code Output Box */
.code-output-wrap {
  position: relative;
}

.code-box-pre {
  background: #070a12;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  color: #c7d2fe;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 440px;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.copy-btn:hover {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   ROBOTS.TXT GENERATOR — SWITCH CONTROLS & BOTS
   ========================================================================== */
.presets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--primary-light);
  color: #ffffff;
}

.bot-toggle-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .bot-toggle-list {
    grid-template-columns: 1fr;
  }
}

.bot-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 21, 36, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color 0.15s, background 0.15s;
}

.bot-card-item:hover {
  border-color: var(--border-strong);
  background: rgba(24, 32, 54, 0.65);
}

.bot-card-item span {
  color: var(--text-strong);
  font-weight: 700;
  font-size: 13.5px;
  display: block;
}

.bot-card-item small {
  color: var(--text-dim);
  display: block;
  font-size: 11px;
}

/* Modern iOS/SaaS Switch Toggle */
.switch-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.switch-toggle input:checked + .switch-slider {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border-color: rgba(99, 102, 241, 0.5);
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(20px);
}