/* ═══════════════════════════════════════════════
   ConvertIQ — Blue Ocean Design System
   Shared stylesheet for all pages
═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --brand:       #0F78BE;
  --brand-dark:  #005fa3;
  --accent:      #88E6E3;
  --accent-mint: #A8FFE5;
  --bg:          #061829;
  --surface:     #091e30;
  --surface-2:   #0c2840;
  --border:      rgba(15,120,190,0.18);
  --border-mid:  rgba(15,120,190,0.30);
  --text:        #dceef8;
  --muted:       #7bafc9;
  --dim:         #4a7a9b;
  --white:       #ffffff;
  --green:       #22c55e;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --nav-h:       68px;
  --max-w:       1100px;
  --transition:  0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
p  { color: var(--muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section     { padding: 96px 0; }
.grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3      { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.text-center { text-align: center; }
.mt-40       { margin-top: 40px; }
.mt-48       { margin-top: 48px; }
.lead        { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin-top: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}
.btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15,120,190,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-ghost:hover { background: rgba(15,120,190,.10); }
.btn-lg   { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--radius); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-brand { background: rgba(15,120,190,.15); color: var(--accent); border: 1px solid rgba(15,120,190,.3); }
.badge-green { background: rgba(34,197,94,.12);  color: var(--green);  border: 1px solid rgba(34,197,94,.3); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--border-mid); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(15,120,190,.15);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

/* ── Section labels ── */
.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}
.section-title { color: var(--white); margin-bottom: 16px; }
.section-desc  { font-size: 1.05rem; color: var(--muted); max-width: 600px; }

/* ── Info box ── */
.info-box {
  background: rgba(15,120,190,.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.info-box h4 { color: var(--accent); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.info-box p  { font-size: .9rem; }

/* ── Checklist ── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .92rem; color: var(--text);
}
.checklist li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(6,24,41,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -.5px; color: var(--white); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  font-size: .9rem; color: var(--muted);
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(15,120,190,.12); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); font-size: 1.4rem; }

/* ── Page hero ── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-top: 12px; }

/* ── Highlight band ── */
.highlight-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.stat-block  { text-align: center; }
.stat-num    { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; }
.stat-num.accent { color: var(--accent); }
.stat-label  { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ── CTA box ── */
.cta-box {
  background: linear-gradient(135deg, var(--surface-2, #0c2840) 0%, var(--surface) 100%);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 64px;
  text-align: center;
}
.cta-box h2   { color: var(--white); margin-bottom: 16px; }
.cta-box > p  { max-width: 520px; margin: 0 auto 36px; }
.cta-btns     { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Glow ── */
.glow         { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.glow-brand   { background: rgba(15,120,190,.20); }
.glow-accent  { background: rgba(136,230,227,.10); }

/* ── Pricing cards ── */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(136,230,227,.07) 0%, var(--surface) 100%);
}
.pricing-featured-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
}
.price-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.price-sub { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }

/* ── Step process ── */
.step-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step-row:last-child { border-bottom: none; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.step-content h3 { color: var(--white); margin-bottom: 6px; }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-brand p { font-size: .88rem; color: var(--dim); margin-top: 12px; max-width: 260px; }
.footer-col h4  { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a   { font-size: .88rem; color: var(--dim); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom  { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--dim); }
.footer-legal   { display: flex; gap: 20px; }
.footer-legal a { color: var(--dim); }
.footer-legal a:hover { color: var(--muted); }

/* ── FAQ Accordion ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(15,120,190,.15);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--brand);
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: rgba(15,120,190,.25);
}
.faq-answer { display: none; padding-bottom: 20px; }
.faq-answer.open { display: block; }
.faq-answer p { font-size: .95rem; line-height: 1.7; }

/* ── Revenue calculator table ── */
.calc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.calc-table th {
  text-align: left; padding: 12px 16px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.calc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.calc-table tr:last-child td { border-bottom: none; }
.calc-table .highlight td {
  background: rgba(15,120,190,.08);
  color: var(--accent);
  font-weight: 700;
}

/* ── Responsive ── */
@media(max-width: 900px) {
  .grid-3        { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 680px) {
  .grid-2  { grid-template-columns: 1fr; }
  .grid-3  { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 0 48px; }
  .cta-box   { padding: 36px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
  }
}
