/* ─────────────────────────────────────────────────────────────────
   Compaxis V1 site — single hand-rolled stylesheet for Dreamhost.
   Design echoes the BIG launch site (Dynera/Exergy) but in
   Compaxis colours: white background, dark-navy hero, blue X
   accent from the logo.
   ───────────────────────────────────────────────────────────────── */

:root {
  /* Brand — pulled from the Compaxis monogram (the blue X). */
  --blue:        #3B9EFF;   /* primary X blue */
  --blue-600:    #2A88E8;
  --blue-700:    #1F70C8;
  --blue-light:  #5DC5FF;   /* lighter cyan stroke in the X */
  --blue-50:     #E8F4FF;
  --blue-100:    #D1E8FF;

  /* Dark navy for hero + footer */
  --navy-950:    #060E1A;
  --navy-900:    #0A1628;
  --navy-800:    #11203A;
  --navy-700:    #1A2A47;

  /* Neutral text + greys */
  --ink:         #1A1F2E;   /* Compaxis wordmark near-black */
  --ink-soft:    #2A3142;
  --gray-700:    #3A4254;
  --gray-600:    #586075;
  --gray-500:    #7A8298;
  --gray-400:    #98A0B5;
  --gray-300:    #C3CADA;
  --gray-200:    #DEE3EE;
  --gray-100:    #ECEFF6;
  --gray-50:     #F6F8FC;
  --white:       #FFFFFF;

  /* Accent — used sparingly for highlights / callouts */
  --amber:       #F7B733;
  --success:     #14A86A;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Radii + shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 25, 50, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 25, 50, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 25, 50, 0.10);
  --shadow-blue: 0 10px 28px rgba(59, 158, 255, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

/* ── container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 28px; width: auto; }
.nav-brand .wordmark { height: 22px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  color: var(--gray-600);
  transition: color 120ms, background 120ms;
}
.nav-links a:hover { color: var(--ink); background: var(--gray-50); }
.nav-links a.active { color: var(--blue-700); background: var(--blue-50); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink);
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: var(--r-md) !important;
  font-weight: 600 !important;
  margin-left: 8px;
  transition: background 120ms, transform 120ms;
}
.nav-cta:hover { background: var(--blue-700); transform: translateY(-1px); }

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── hero (dark) ── */
.hero {
  position: relative;
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(59, 158, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(93, 197, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 50%, var(--blue) 100%);
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(59, 158, 255, 0.14);
  border: 1px solid rgba(59, 158, 255, 0.30);
  border-radius: var(--r-pill);
  color: var(--blue-light);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-logo { margin: 0 auto 28px; max-width: 280px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--gray-300);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-size: 16px; font-weight: 600;
  cursor: pointer; border: 0;
  transition: transform 120ms, background 120ms, box-shadow 120ms;
}
.btn-primary {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-600) 100%);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-1px); color: var(--white); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.20);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-50); color: var(--ink); }

/* hero stat band */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 880px; margin: 0 auto;
}
.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-lg);
  padding: 22px 16px; text-align: center;
}
.stat-num {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--blue-light);
  line-height: 1;
}
.stat-label {
  font-size: 13px; color: var(--gray-400); margin-top: 8px;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

/* ── sections (light) ── */
.section { padding: 88px 0; }
.section-tinted { background: var(--gray-50); }
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.02em;
  text-align: center; margin: 0 0 12px;
  color: var(--ink);
}
.section-sub {
  text-align: center;
  color: var(--gray-600);
  max-width: 640px; margin: 0 auto 56px;
  font-size: 17px;
}

/* feature grid (3-up cards) */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform 160ms, box-shadow 160ms, border-color 160ms;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50);
  border-radius: var(--r-md);
  color: var(--blue-700);
  margin-bottom: 18px;
  font-size: 22px;
}
.card h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.card p { margin: 0; color: var(--gray-600); font-size: 15px; }

/* data table (the SQ4 vs Q4 evidence table) */
.evidence {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.evidence table { width: 100%; border-collapse: collapse; font-size: 14px; }
.evidence thead th {
  text-align: left;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gray-500);
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.evidence tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--ink-soft);
}
.evidence tbody tr:last-child td { border-bottom: 0; }
.evidence .num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 13px; }
.evidence .win {
  color: var(--success); font-weight: 600;
  font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 13px;
}
.evidence-note {
  font-size: 13px; color: var(--gray-500);
  margin-top: 16px; text-align: center;
}

/* ── pricing ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 8px;
}
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 12px 36px rgba(59, 158, 255, 0.18);
}
.price-card.featured::before {
  content: 'Best value';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: var(--r-pill);
}
.price-name {
  font-size: 14px; font-weight: 600; color: var(--blue-700);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.price-amount {
  display: flex; align-items: baseline; gap: 6px; margin: 0 0 6px;
}
.price-amount .num {
  font-size: 44px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
  line-height: 1;
}
.price-amount .currency { font-size: 22px; font-weight: 700; color: var(--ink); }
.price-amount .per { font-size: 14px; color: var(--gray-500); margin-left: 4px; }
.price-hint { font-size: 13px; color: var(--gray-500); margin: 0 0 20px; min-height: 18px; }
.price-list {
  list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1;
}
.price-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.price-list li:last-child { border-bottom: 0; }
.price-list li::before {
  content: '';
  position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px;
  background:
    linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.5 4.5L6 12l-3.5-3.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.5 4.5L6 12l-3.5-3.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.price-list li.muted { color: var(--gray-400); }
.price-list li.muted::before { background: var(--gray-300); }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px; font-weight: 300; color: var(--gray-500);
  transition: transform 120ms;
}
.faq details[open] summary::after { content: '×'; }
.faq details p { margin: 14px 0 0; color: var(--gray-600); font-size: 15px; }

/* ── callout (refund / guarantee strip) ── */
.callout {
  background: linear-gradient(120deg, var(--blue-50) 0%, #F0F8FF 100%);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex; gap: 20px; align-items: center;
  margin-top: 36px;
}
.callout-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--blue); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
}
.callout h4 { margin: 0 0 4px; font-size: 17px; color: var(--ink); }
.callout p { margin: 0; color: var(--gray-700); font-size: 14px; }

/* ── footer ── */
footer {
  background: var(--navy-900);
  color: var(--gray-300);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
/* Footer wordmark uses a pre-rendered white-text + transparent-bg PNG
   (compaxis-wordmark-white.png). Earlier attempt used a CSS filter on
   the standard wordmark, but the source PNG has a white rounded-rect
   bg baked in - the filter turned the whole tile white.  */
.footer-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--gray-400); max-width: 280px; }
.footer-col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray-400); margin: 0 0 16px; font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-300);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--gray-500); flex-wrap: wrap; gap: 12px;
}

/* ── page-header (smaller hero for non-home pages) ── */
.page-header {
  background:
    radial-gradient(700px 400px at 80% 10%, rgba(59, 158, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 72px 0 56px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.page-header p {
  font-size: 18px; color: var(--gray-300);
  max-width: 640px; margin: 0 auto;
}

/* ── email obfuscation ──
   <span class="cpx-eml" data-u="support" data-d="compaxis" data-t="ai"></span>
   plus the inline JS at the bottom of each page wires the click and renders
   the visible text. Prevents the literal "support@compaxis.ai" string
   appearing in the raw HTML / DOM source, which is what email scrapers
   harvest. The fallback (JS disabled) shows the parts spaced out
   "support [at] compaxis [dot] com" which a human can still read. */
.cpx-eml {
  display: inline;
  word-break: keep-all;
}
.cpx-eml::before {
  content: attr(data-u) " [at] " attr(data-d) " [dot] " attr(data-t);
}
.cpx-eml.cpx-eml-wired::before { content: none; }

/* ── legal pages ── */
.legal {
  max-width: 800px; margin: 0 auto;
}
.legal h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: var(--ink); }
.legal h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; color: var(--ink); }
.legal p, .legal li { color: var(--gray-700); font-size: 16px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal .updated {
  font-size: 13px; color: var(--gray-500);
  margin-top: 4px;
}
.legal .placeholder {
  background: #FFF7E6;
  border: 1px dashed var(--amber);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px; color: #6B4A0A;
}
