/* ==========================================================================
   IGAUTOMATE V2 — SEO & GEO COMPARATIVE PAGES DESIGN SYSTEM
   Dark Cosmic Theme (#07030d), Sora + Manrope, Glass Cards, Zero Legacy Offset
   ========================================================================== */
:root {
  --bg: #07030d;
  --bg-elev: rgba(20, 10, 34, 0.86);
  --bg-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(225, 48, 108, 0.24);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --text: #f8fafc;
  --soft: #cbd5e1;
  --dim: #94a3b8;
  --pink: #e1306c;
  --purple: #833ab4;
  --orange: #f77737;
  --amber: #fcaf45;
  --green: #34d399;
  --red: #f87171;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(131, 58, 180, 0.24), transparent 46%),
    radial-gradient(circle at 82% 8%, rgba(225, 48, 108, 0.16), transparent 44%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* Sticky Top Navigation */
.cmp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 3, 13, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmp-nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cmp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.5px;
}

.cmp-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(225, 48, 108, 0.35);
}

.cmp-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.cmp-nav-links a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cmp-nav-links a:hover {
  color: #ff86b8;
}

.cmp-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
}

.cmp-lang-switch:hover {
  border-color: var(--pink);
  background: rgba(225, 48, 108, 0.16);
}

.cmp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cmp-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(225, 48, 108, 0.5);
}

/* Main Container */
.cmp-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 84px;
}

/* Breadcrumb */
.cmp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 18px;
}

.cmp-breadcrumb a {
  color: var(--soft);
  text-decoration: none;
}

.cmp-breadcrumb a:hover {
  color: #ff86b8;
}

/* Hero */
.cmp-hero {
  margin-bottom: 34px;
}

.cmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(225, 48, 108, 0.14);
  border: 1px solid rgba(225, 48, 108, 0.38);
  color: #ffd1e3;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cmp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #fff;
}

.cmp-grad {
  background: linear-gradient(95deg, #ff7eb3, #fcaf45 55%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cmp-lead {
  font-size: 1.06rem;
  color: var(--soft);
  max-width: 820px;
  margin-bottom: 24px;
}

.cmp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.cmp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #833ab4, #e1306c 60%, #f77737);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(225, 48, 108, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cmp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(225, 48, 108, 0.52);
}

.cmp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cmp-btn-secondary:hover {
  border-color: var(--pink);
  background: rgba(225, 48, 108, 0.14);
}

.cmp-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.83rem;
  color: var(--dim);
}

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

.cmp-trust-strip strong {
  color: #e2e8f0;
}

/* TL;DR Executive Verdict Box (GEO Gold) */
.cmp-tldr {
  background: linear-gradient(145deg, rgba(131, 58, 180, 0.16), rgba(22, 11, 36, 0.9));
  border: 1px solid rgba(225, 48, 108, 0.34);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 30px;
}

.cmp-tldr-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #fcaf45;
  margin-bottom: 8px;
}

.cmp-tldr p {
  color: #e2e8f0;
  font-size: 0.96rem;
  margin: 0;
}

/* Cards & Sections */
.cmp-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 30px;
  margin-bottom: 26px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.cmp-card p,
.cmp-card li,
.cmp-tldr p,
.cmp-callout,
.cmp-faq-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cmp-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
}

.cmp-card h3 {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: #ff9ec4;
  margin: 18px 0 8px;
}

.cmp-card p {
  color: var(--soft);
  margin-bottom: 14px;
}

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

.cmp-card ul {
  padding-left: 20px;
  color: var(--soft);
  margin-bottom: 14px;
}

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

.cmp-card strong {
  color: #fff;
}

/* Interactive Embedded Extension Sandbox */
.cmp-demo-wrap {
  background: rgba(15, 7, 25, 0.92);
  border: 1px solid rgba(225, 48, 108, 0.36);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.cmp-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.cmp-demo-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

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

.cmp-demo-title {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffd1e3;
}

.cmp-demo-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.cmp-demo-full:hover {
  border-color: var(--pink);
  background: rgba(225, 48, 108, 0.16);
}

.cmp-demo-stage {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0713;
}

.cmp-demo-iframe {
  width: 100%;
  height: 660px;
  border: 0;
  display: block;
  background: #0d0a14;
}

.cmp-demo-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.cmp-demo-pill {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--soft);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmp-demo-pill:hover,
.cmp-demo-pill.active {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.45), rgba(225, 48, 108, 0.4));
  border-color: var(--pink);
  color: #fff;
}

.cmp-demo-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--dim);
  margin-top: 10px;
}

/* Comparison Table */
.cmp-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin: 16px 0 8px;
}

.cmp-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cmp-table th,
.cmp-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}

.cmp-table thead th {
  background: rgba(131, 58, 180, 0.22);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  color: #fff;
}

.cmp-table thead th.col-ig {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.42), rgba(225, 48, 108, 0.36));
  color: #fff;
}

.cmp-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.cmp-table tbody tr:last-child td {
  border-bottom: 0;
}

.cmp-table td:first-child {
  font-weight: 700;
  color: #f1f5f9;
}

.tag-yes {
  color: var(--green);
  font-weight: 700;
}

.tag-no {
  color: var(--red);
  font-weight: 700;
}

.tag-mid {
  color: var(--amber);
  font-weight: 700;
}

/* Honest Split Verdict Grid */
.cmp-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.cmp-split-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px;
}

.cmp-split-box.ig-win {
  background: linear-gradient(155deg, rgba(225, 48, 108, 0.1), rgba(131, 58, 180, 0.12));
  border-color: rgba(225, 48, 108, 0.42);
}

.cmp-split-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.cmp-split-box.comp-win h3 {
  color: #cbd5e1;
}

.cmp-split-box.ig-win h3 {
  color: #ff9ec4;
}

.cmp-split-box ul {
  margin-bottom: 0;
}

/* Pricing & Free Plan Highlight Grid */
.cmp-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.cmp-price-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
}

.cmp-price-card.featured {
  background: linear-gradient(155deg, rgba(131, 58, 180, 0.24), rgba(225, 48, 108, 0.16));
  border-color: rgba(225, 48, 108, 0.5);
}

.cmp-price-tier {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fcaf45;
  margin-bottom: 6px;
}

.cmp-price-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.cmp-price-card p {
  font-size: 0.87rem;
  margin-bottom: 0;
}

/* Security / Compliance Callout */
.cmp-callout {
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: #d1fae5;
}

.cmp-callout.warn {
  background: rgba(252, 175, 69, 0.08);
  border-color: rgba(252, 175, 69, 0.34);
  color: #fef3c7;
}

.cmp-callout a {
  color: #ff9ec4;
  font-weight: 700;
}

/* FAQ Accordion */
.cmp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.cmp-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

.cmp-faq-btn {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cmp-faq-icon {
  color: #ff86b8;
  font-size: 1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.cmp-faq-item.open .cmp-faq-icon {
  transform: rotate(180deg);
}

.cmp-faq-body {
  display: none;
  padding: 0 20px 18px;
  color: var(--soft);
  font-size: 0.92rem;
}

.cmp-faq-item.open .cmp-faq-body {
  display: block;
}

/* Related Comparisons Grid */
.cmp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cmp-related-link {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cmp-related-link:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.cmp-related-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 4px;
}

.cmp-related-link span {
  font-size: 0.8rem;
  color: var(--dim);
}

/* Bottom CTA Banner */
.cmp-final-cta {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.34), rgba(225, 48, 108, 0.26));
  border: 1px solid rgba(225, 48, 108, 0.48);
  border-radius: 24px;
  padding: 34px 28px;
  text-align: center;
  margin-top: 30px;
}

.cmp-final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: #fff;
  margin-bottom: 10px;
}

.cmp-final-cta p {
  color: #e2e8f0;
  max-width: 660px;
  margin: 0 auto 20px;
}

/* Footer */
.cmp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 20px 44px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--dim);
}

.cmp-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 12px;
}

.cmp-footer-links a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
}

.cmp-footer-links a:hover {
  color: #ff86b8;
}

/* Responsive Breakpoints */
@media (max-width: 820px) {
  .cmp-split,
  .cmp-price-grid {
    grid-template-columns: 1fr;
  }

  .cmp-card {
    padding: 22px 18px;
  }

  .cmp-demo-wrap {
    padding: 12px;
  }

  .cmp-demo-iframe {
    height: 560px;
  }
}

@media (max-width: 520px) {
  .cmp-nav {
    padding: 10px 14px;
  }

  .cmp-main {
    padding: 28px 14px 64px;
  }

  .cmp-btn-primary,
  .cmp-btn-secondary {
    width: 100%;
  }
}
