/* Shared styles for the /compare/* competitor comparison pages.
   Kept in one file so spacing and brand tokens only ever change in one
   place. Tokens mirror index.html's :root. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --bg: #08090E;
  --bg-raised: #0D0F16;
  --surface: #12141D;
  --surface-2: #171A26;
  --blue: #1C3FFF;
  --blue-bright: #3B82F6;
  --silver: #9CA3AF;
  --silver-bright: #D1D5DB;
  --white: #F1F5F9;
  --cyan: #06B6D4;
  --green: #10B981;
  --red: #F87171;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.13);
  --font-heading: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --gutter: clamp(1rem, 4vw, 3rem);
}

body { font-family: var(--font-body); background: var(--bg); color: var(--silver); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--white); line-height: 1.2; letter-spacing: -0.02em; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* padding-INLINE only: `section` and `.hero` own the vertical rhythm via
   padding-block, so the two never fight over the `padding` shorthand
   (a class beats an element selector and would silently zero it out). */
.wrap { max-width: 980px; margin: 0 auto; padding-inline: var(--gutter); }

.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); background: rgba(8,9,14,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.nav-links a { color: var(--silver-bright); }

.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 200ms, border-color 200ms; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -8px rgba(28,63,255,0.5); }
.btn-primary:hover { background: var(--blue-bright); text-decoration: none; }
.btn-ghost { border: 1px solid var(--border-bright); color: var(--silver-bright); }
.btn-ghost:hover { border-color: var(--silver); text-decoration: none; }

.hero { padding-block: clamp(52px, 7vw, 84px) 4px; }
.crumb { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.crumb a { color: var(--cyan); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 18px; }
.lede { font-size: 1.1rem; max-width: 46rem; }
.updated { font-family: var(--font-mono); font-size: 0.72rem; color: var(--silver); opacity: 0.75; margin-top: 14px; }

section { padding-block: clamp(26px, 3.2vw, 40px); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 18px; }
h3 { font-size: 1.1rem; margin: 26px 0 8px; }
p + p { margin-top: 14px; }

.verdict { background: var(--surface); border: 1px solid var(--border-bright); border-left: 3px solid var(--blue-bright); border-radius: 12px; padding: 22px 26px; color: var(--silver-bright); }

.table-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 18px 0; }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp-table th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver); }
.cmp-table td:first-child { color: var(--silver-bright); font-weight: 500; }
.cmp-table .dc { color: var(--white); background: rgba(28,63,255,0.06); }
.yes { color: var(--green); }
.no { color: var(--red); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.win-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px; }
.win-card h3 { margin-top: 0; }
.win-card ul { margin: 10px 0 0 18px; }
.win-card li { margin-bottom: 8px; }

.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 1rem; }

.cta-band { text-align: center; background: var(--surface); border: 1px solid var(--border-bright); border-radius: 16px; padding: clamp(36px, 5vw, 52px) 24px; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin-bottom: 22px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-sub { font-size: 0.8rem; margin-top: 14px; color: var(--silver); }

.footer { border-top: 1px solid var(--border); padding: 32px var(--gutter); text-align: center; font-size: 0.85rem; }
.footer p { margin-top: 6px; }

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
