/* ═══ BLOG ARTICLE SHARED STYLES ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #fff;
  --bg: #fff;
  --bg-secondary: #fafafa;
  --fg: #000;
  --fg-secondary: #666;
  --fg-muted: #999;
  --border: #eaeaea;
  --border-dark: #ccc;
  --accents-1: #fafafa;
  --accents-7: #333;
  --accents-8: #111;
  --blue: #0070f3;
  --blue-light: #3291ff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Vollkorn', Georgia, 'Times New Roman', serif;
  --mono: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --max-w: 1100px;
  --nav-h: 64px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: hsla(0,0%,100%,0.8);
  backdrop-filter: saturate(180%) blur(5px);
  -webkit-backdrop-filter: saturate(180%) blur(5px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.nav-logo img { height: 28px; width: auto; }
.nav-center { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-center a { font-size: 14px; color: var(--fg-secondary); transition: color 0.15s; }
.nav-center a:hover { color: var(--fg); }
.nav-center a.active { color: var(--fg); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 7px; font-size: 14px; font-weight: 500;
  font-family: var(--font); border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none; white-space: nowrap;
}
.btn-black { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-black:hover { background: var(--accents-7); }
.btn-outline { background: var(--bg); color: var(--fg); border-color: var(--border); }
.btn-outline:hover { border-color: var(--fg); }
.btn-lg { padding: 12px 24px; font-size: 16px; border-radius: 8px; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--fg); }
.mobile-overlay { display: none; position: fixed; inset: 0; top: var(--nav-h); background: var(--bg); z-index: 99; flex-direction: column; padding: 24px; gap: 0; }
.mobile-overlay.open { display: flex; }
.mobile-overlay a { font-size: 16px; padding: 16px 0; color: var(--fg-secondary); border-bottom: 1px solid var(--border); }

/* ── ARTICLE HEADER ── */
.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.article-back {
  display: flex; align-items: center; gap: 6px; width: fit-content;
  font-size: 13px; font-weight: 500; color: var(--fg-muted);
  margin-bottom: 32px; transition: color 0.15s;
}
.article-back:hover { color: var(--blue); }
.article-back svg { width: 14px; height: 14px; }
.article-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue); margin-bottom: 16px;
}
.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 20px;
  max-width: 720px;
}
.article-meta {
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; color: var(--fg-muted);
}
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta svg { width: 14px; height: 14px; }

/* ── ARTICLE BODY ── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 80px;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.3;
  margin-top: 48px; margin-bottom: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 400;
  line-height: 1.35;
  margin-top: 36px; margin-bottom: 16px;
}
.article-body h4 {
  font-size: 16px; font-weight: 600;
  margin-top: 28px; margin-bottom: 12px;
}
.article-body p {
  font-size: 17px; line-height: 1.8;
  color: var(--fg-secondary);
  margin-bottom: 20px;
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--fg); }
.article-body strong { color: var(--fg); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-body li {
  font-size: 17px; line-height: 1.8;
  color: var(--fg-secondary);
  margin-bottom: 8px;
}
.article-body li strong { color: var(--fg); }
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--accents-1);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p { color: var(--fg); font-size: 16px; margin-bottom: 0; }
.article-body pre, .article-body code {
  font-family: var(--mono);
  font-size: 14px;
}
.article-body code {
  background: var(--accents-1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.article-body pre {
  background: var(--accents-8);
  color: #eaeaea;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
}
.article-body pre code {
  background: none; border: none; padding: 0; color: inherit;
}
.article-body img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 28px 0;
}
.article-body figure {
  margin: 28px 0;
}
.article-body figure img { margin: 0; }
.article-body figure figcaption {
  font-size: 13px; color: var(--fg-muted);
  text-align: center; margin-top: 12px;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.article-body th, .article-body td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-body th {
  background: var(--accents-1);
  font-weight: 600; color: var(--fg);
}
.article-body td { color: var(--fg-secondary); }
.article-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── CALLOUT / TIP BOXES ── */
.callout {
  margin: 28px 0;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--accents-1);
  position: relative;
}
.callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.callout-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.callout p {
  font-size: 15px !important;
  line-height: 1.7;
  color: var(--fg-secondary) !important;
  margin-bottom: 0 !important;
}
.callout p + p { margin-top: 8px !important; }
.callout.tip { border-left: 3px solid var(--blue); }
.callout.tip .callout-header svg { color: var(--blue); }
.callout.warning { border-left: 3px solid #f5a623; }
.callout.warning .callout-header svg { color: #f5a623; }
.callout.info { border-left: 3px solid #7928ca; }
.callout.info .callout-header svg { color: #7928ca; }
.callout.compare { border-left: 3px solid #50e3c2; }
.callout.compare .callout-header svg { color: #50e3c2; }

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.comparison-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.comparison-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comparison-card li {
  font-size: 14px !important;
  line-height: 1.6;
  padding: 4px 0;
  color: var(--fg-secondary) !important;
  margin-bottom: 4px !important;
}
.comparison-card li::before {
  margin-right: 6px;
  font-weight: 600;
}
.comparison-card.pros h4 { color: #0cce6b; }
.comparison-card.pros li::before { content: "+"; color: #0cce6b; }
.comparison-card.cons h4 { color: #e00; }
.comparison-card.cons li::before { content: "-"; color: #e00; }

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

/* ── GRAPHIC CALLOUTS (image replacements) ── */
.graphic-callout {
  margin: 28px 0;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fafafa 0%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}
.graphic-callout::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(0,112,243,0.06);
  pointer-events: none;
}
.graphic-callout-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 16px;
}
.graphic-callout-label svg { width: 14px; height: 14px; }
.graphic-callout-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.3;
}
.graphic-callout p.gc-caption {
  font-size: 13px !important;
  color: var(--fg-muted) !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  text-align: center;
  font-style: italic;
}

/* stat-row: horizontal stat display */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.stat-item {
  text-align: center;
  padding: 20px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.3;
}

/* bar-chart: horizontal bar chart */
.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label {
  font-size: 13px;
  color: var(--fg-secondary);
  min-width: 120px;
  text-align: right;
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: width 0.5s ease;
}
.bar-fill.blue { background: var(--blue); }
.bar-fill.green { background: #0cce6b; }
.bar-fill.purple { background: #7928ca; }
.bar-fill.orange { background: #f5a623; }
.bar-fill.red { background: #e00; }
.bar-fill.teal { background: #50e3c2; color: var(--fg); }

/* versus-grid: side-by-side comparison */
.versus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.versus-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.versus-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.versus-card.fail h4 { color: #e00; }
.versus-card.win h4 { color: #0cce6b; }
.versus-card ul { list-style: none; padding: 0; margin: 0; }
.versus-card li {
  font-size: 13px !important;
  line-height: 1.6;
  padding: 3px 0;
  color: var(--fg-secondary) !important;
  margin-bottom: 2px !important;
}
.versus-card.fail li::before { content: "\2717 "; color: #e00; font-weight: 600; margin-right: 4px; }
.versus-card.win li::before { content: "\2713 "; color: #0cce6b; font-weight: 600; margin-right: 4px; }

/* flow-steps: process flowchart */
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}
.flow-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.flow-step-body {
  padding-bottom: 24px;
  flex: 1;
}
.flow-step:last-child .flow-step-body { padding-bottom: 0; }
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 17px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.flow-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 36px;
}
.flow-step-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* spectrum: gradient range display */
.spectrum-bar {
  margin: 8px 0 12px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #e00 0%, #f5a623 30%, #50e3c2 60%, #0cce6b 100%);
}
.spectrum-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.spectrum-labels span {
  font-size: 11px;
  color: var(--fg-muted);
  font-weight: 500;
}
.spectrum-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.spectrum-item {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.spectrum-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}
.spectrum-item-stat {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.spectrum-item-desc {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .versus-grid { grid-template-columns: 1fr; }
  .bar-label { min-width: 80px; font-size: 12px; }
  .spectrum-items { grid-template-columns: 1fr 1fr; }
  .graphic-callout { padding: 24px 20px; }
}

/* ── CTA BANNER ── */
.article-cta {
  max-width: 720px; margin: 0 auto 64px;
  padding: 40px;
  background: var(--fg);
  color: #fff;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,112,243,0.15), transparent 60%);
  pointer-events: none;
}
.article-cta h3 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 400;
  margin-bottom: 8px; position: relative;
}
.article-cta p {
  font-size: 14px; color: rgba(255,255,255,0.5);
  margin-bottom: 24px; position: relative;
}
.article-cta .btn { position: relative; }
.btn-white { background: #fff; color: var(--fg); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,0.9); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--accents-1); }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 13px; color: var(--fg-muted); margin-top: 12px; max-width: 200px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--fg); }
.footer-col a { display: block; font-size: 13px; color: var(--fg-muted); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--fg); }
.pay-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-icons img { height: 22px; width: auto; opacity: 0.6; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--fg-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--fg-muted); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--fg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-center { display: none; }
  .nav-hamburger { display: block; }
  .article-header { padding: 48px 0 32px; }
  .article-body { padding: 40px 0 60px; }
  .article-body h2 { font-size: 24px; }
  .article-body p, .article-body li { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; }
}
