/* Creative Den SEO Quote Tool — Stylesheet */

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

@keyframes cd-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.75); } }

.seo-root { min-height: 100vh; background: #f0f6fb; color: #1a2d4a; font-family: inherit; overflow-x: hidden; width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 36px 24px 60px; position: relative; z-index: 1; }

/* Header */
.header { text-align: center; padding: 48px 20px 36px; background: linear-gradient(135deg, #1a2d4a 0%, #1e3a5f 100%); border-radius: 8px; margin-bottom: 24px; }
.eyebrow { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: #29ABE2; margin-bottom: 14px; font-weight: 700; }
.title { font-family: inherit; font-size: clamp(26px, 6vw, 48px); font-weight: 700; line-height: 1.15; margin-bottom: 14px; color: #ffffff; }
.title span { color: #29ABE2; }
.subtitle { color: #8fb3cc; font-size: 15px; line-height: 1.6; max-width: 440px; margin: 0 auto; }

/* Step nav */
.step-nav { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; background: #ffffff; border-radius: 6px; padding: 8px; border: 1px solid #dce8f0; }
.step-item { display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border-radius: 4px; }
.step-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* Cards */
.card { background: #ffffff; border: 1px solid #dce8f0; border-radius: 8px; padding: 24px 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(26,45,74,0.06); }
@media (min-width: 560px) { .card { padding: 32px 28px; } }
.slabel { font-size: 16px; letter-spacing: 0; text-transform: uppercase; color: #29ABE2; margin-bottom: 18px; font-weight: 700; }

/* Form */
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 500px) { .grid2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 500px) { .grid2 > .grid2-span-full { grid-column: 1 / -1; } }
.flabel { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #3a5a72; margin-bottom: 7px; font-weight: 600; }
.finput { width: 100%; background: #f4f9fc; border: 1px solid #c8dde8; border-radius: 6px; padding: 11px 13px; color: #1a2d4a; font-size: 15px; font-family: inherit; outline: none; transition: border-color 0.2s; -webkit-appearance: none; }
.finput:focus { border-color: #29ABE2; box-shadow: 0 0 0 3px rgba(41,171,226,0.12); }
.finput::placeholder { color: #7a9db5; }

/* Keyword inputs */
.kw-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 460px) { .kw-grid { grid-template-columns: 1fr 1fr; } }
.kw-row { display: flex; align-items: center; gap: 10px; background: #f4f9fc; border: 1px solid #c8dde8; border-radius: 6px; padding: 10px 12px; transition: border-color 0.2s; }
.kw-row:focus-within { border-color: #29ABE2; }
.kw-num { font-size: 10px; color: #29ABE2; font-weight: 700; min-width: 16px; flex-shrink: 0; }
.kw-field { background: none; border: none; color: #1a2d4a; font-size: 14px; font-family: inherit; outline: none; width: 100%; -webkit-appearance: none; }
.kw-field::placeholder { color: #7a9db5; }

/* Buttons */
.btn-p { background: #29ABE2; color: #ffffff; border: none; border-radius: 6px; padding: 13px 28px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background 0.2s; box-shadow: 0 2px 8px rgba(41,171,226,0.3); }
.btn-p:hover { background: #1a96cc; }
.btn-p:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-s { background: transparent; color: #3a5a72; border: 1px solid #c8dde8; border-radius: 6px; padding: 13px 22px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; cursor: pointer; font-family: inherit; white-space: nowrap; transition: all 0.2s; }
.btn-s:hover { border-color: #29ABE2; color: #29ABE2; }
.btn-expand { background: #29ABE2; color: #ffffff; border: none; border-radius: 20px; padding: 10px 28px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background 0.2s, transform 0.15s; box-shadow: 0 2px 8px rgba(41,171,226,0.25); }
.btn-expand:hover { background: #1a96cc; transform: translateY(-1px); }
.btn-expand:active { transform: translateY(0); }

/* Layout helpers */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; }
.divider { height: 1px; background: #dce8f0; margin: 24px 0; }

/* Stats strip */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #dce8f0; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
@media (min-width: 500px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-cell { background: #1a2d4a; padding: 20px 12px; text-align: center; }
.stat-val { font-family: inherit; font-size: 30px; color: #29ABE2; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: 11px; color: #8fb3cc; line-height: 1.4; }

/* Keyword list cards */
.kw-list { display: flex; flex-direction: column; gap: 8px; }
.kw-item { background: #f4f9fc; border: 1px solid #dce8f0; border-radius: 8px; padding: 14px 16px; }
.kw-item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.kw-item-name { font-size: 14px; font-weight: 700; color: #1a2d4a; }
.kw-badge { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.badge-yours { color: #1a96cc; background: #e0f3fb; }
.badge-opp   { color: #1e8449; background: #eafaf1; }
.kw-item-stats { display: flex; align-items: center; gap: 0; }
.kw-stat { flex: 1; text-align: center; }
.kw-stat-val { font-size: 15px; font-weight: 700; color: #1a2d4a; line-height: 1; margin-bottom: 4px; }
.kw-stat-lbl { font-size: 10px; color: #7a9db5; text-transform: uppercase; letter-spacing: 1px; }
.kw-stat-hint { display: block; font-size: 9px; color: #aac4d4; line-height: 1.3; margin-top: 2px; text-transform: none; letter-spacing: 0; }
.kw-stat-divider { width: 1px; height: 32px; background: #dce8f0; flex-shrink: 0; }

/* Impact grid */
.impact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 500px) { .impact-grid { grid-template-columns: repeat(3, 1fr); } }
.impact-box { background: #f0f8fd; border: 1px solid #c8dde8; border-top: 3px solid #29ABE2; border-radius: 8px; padding: 18px 16px; }
.impact-num { font-size: 38px; color: #1a2d4a; font-weight: 700; line-height: 1; }
.impact-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #3a5a72; margin-top: 8px; margin-bottom: 4px; }
.impact-sub { font-size: 14px; color: #3a5a72; line-height: 1.4; }

/* Halo effect */
.halo-item { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: #f4f9fc; border: 1px solid #dce8f0; border-radius: 6px; }
@media (min-width: 460px) { .halo-item { flex-direction: row; align-items: flex-start; gap: 16px; } }
.halo-icon { font-size: 22px; flex-shrink: 0; }
.halo-title { font-size: 14px; font-weight: 700; color: #1a2d4a; margin-bottom: 5px; }
.halo-body { font-size: 14px; color: #3a5a72; line-height: 1.6; }
.halo-note { margin-top: 14px; padding: 12px 16px; background: #e8f7fd; border: 1px solid #b0d8ee; border-left: 4px solid #29ABE2; border-radius: 6px; font-size: 14px; color: #3a5a72; line-height: 1.6; }

/* Compare grid */
.compare-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
@media (min-width: 500px) { .compare-grid { grid-template-columns: repeat(3, 1fr); } }
.compare-box { border-radius: 8px; padding: 20px 18px; }
.compare-box.earn { background: #e8f7fd; border: 1px solid #b0d8ee; border-top: 3px solid #29ABE2; }
.compare-box.ads  { background: #fff4f4; border: 1px solid #f5c6c6; border-top: 3px solid #e74c3c; }
.compare-box.cost { background: #eafaf1; border: 1px solid #a9dfbf; border-top: 3px solid #27ae60; }
.compare-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; font-weight: 700; }
.compare-lbl.gold  { color: #1a96cc; }
.compare-lbl.red   { color: #c0392b; }
.compare-lbl.green { color: #1e8449; }
.compare-val { font-size: 40px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
@media (min-width: 500px) { .compare-val { font-size: 44px; } }
.compare-val.gold  { color: #1a2d4a; }
.compare-val.red   { color: #c0392b; }
.compare-val.green { color: #1e8449; }
.compare-sub { font-size: 14px; color: #3a5a72; line-height: 1.5; }

/* Savings / invest banners */
.saving-banner { background: #1a2d4a; border-radius: 8px; padding: 20px 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 500px) { .saving-banner { flex-direction: row; align-items: center; gap: 16px; } }
.saving-val { font-size: 28px; color: #29ABE2; font-weight: 700; }
@media (min-width: 500px) { .saving-val { font-size: 32px; white-space: nowrap; } }
.saving-text { font-size: 14px; color: #8fb3cc; line-height: 1.6; }
.src-note { font-size: 11px; color: #3a5a72; line-height: 1.6; margin-top: 12px; }
.invest-banner { background: #f0f8fd; border: 1px solid #b0d8ee; border-left: 4px solid #29ABE2; border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 460px) { .invest-banner { flex-direction: row; align-items: flex-start; gap: 16px; } }
.invest-icon { font-size: 28px; flex-shrink: 0; }
.invest-title { font-size: 14px; font-weight: 700; color: #1a2d4a; margin-bottom: 6px; letter-spacing: 0.5px; }
.invest-text { font-size: 14px; color: #3a5a72; line-height: 1.6; }

/* ROI chart */
.chart-wrap { position: relative; width: 100%; }
canvas { display: block; width: 100% !important; }
.chart-legend { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #3a5a72; }
.legend-dot { width: 20px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.chart-note { font-size: 12px; color: #3a5a72; margin-top: 10px; line-height: 1.5; }

/* Timeline */
.timeline { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; margin-top: 8px; }
@media (min-width: 500px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.tl-item { padding: 20px 16px; border-top: 3px solid; position: relative; background: #f4f9fc; }
.tl-item:first-child { border-radius: 8px 0 0 8px; }
.tl-item:last-child  { border-radius: 0 8px 8px 0; }
.tl-period { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; font-weight: 700; }
.tl-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #1a2d4a; }
.tl-item-text { font-size: 14px; color: #3a5a72; margin-bottom: 6px; padding-left: 12px; position: relative; line-height: 1.4; }
.tl-item-text::before { content: "›"; position: absolute; left: 0; color: #29ABE2; }

/* Package cards */
.pkg-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
@media (min-width: 500px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }
.pkg-card { background: #f4f9fc; border: 2px solid #dce8f0; border-radius: 8px; padding: 22px 18px; cursor: pointer; transition: all 0.2s; position: relative; }
.pkg-card.sel { background: #e8f7fd; border-color: #29ABE2; box-shadow: 0 4px 16px rgba(41,171,226,0.15); }
.pkg-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: #1a2d4a; }
.pkg-price { font-size: 30px; font-weight: 700; color: #29ABE2; margin-bottom: 2px; }
.pkg-per { font-size: 12px; color: #3a5a72; letter-spacing: 1px; margin-bottom: 14px; }
.pkg-best { font-size: 12px; color: #3a5a72; margin-bottom: 14px; font-style: italic; line-height: 1.4; }
.pkg-feat { font-size: 14px; color: #3a5a72; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.pkg-check { color: #29ABE2; font-size: 14px; margin-top: 1px; flex-shrink: 0; }
.pkg-rec { position: absolute; top: -1px; right: 14px; background: #29ABE2; color: #ffffff; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 0 0 4px 4px; }

/* CTA */
.cta-wrap { text-align: center; padding: 36px 16px; background: linear-gradient(135deg, #1a2d4a 0%, #1e3a5f 100%); border-radius: 8px; }
@media (min-width: 500px) { .cta-wrap { padding: 44px 36px; } }
.cta-title { font-size: clamp(20px, 5vw, 28px); font-weight: 700; margin-bottom: 12px; color: #ffffff; }
.cta-sub { color: #8fb3cc; font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.cta-exclusivity-note {
  margin: 0 auto 24px;
  max-width: 520px;
  font-size: 13px;
  color: #d0e4f0;
  line-height: 1.65;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-fine { margin-top: 18px; font-size: 12px; color: #8fb3cc; }

/* Exclusivity policy (results), distinct from amber warning-style callouts */
.exclusivity-callout {
  background: linear-gradient(180deg, #f8fbfd 0%, #eef4f9 100%);
  border: 1px solid #c8d4e4;
  border-left: 5px solid #1a2d4a;
  border-radius: 0 8px 8px 0;
  padding: 22px 24px 24px;
  text-align: left;
}
.exclusivity-callout-headline {
  font-size: clamp(17px, 3.5vw, 19px);
  font-weight: 700;
  color: #1a2d4a;
  line-height: 1.35;
  margin-bottom: 12px;
}
.exclusivity-callout-body {
  font-size: 13px;
  color: #3a5a72;
  line-height: 1.75;
  margin: 0;
}
.exclusivity-callout-body strong { color: #1a2d4a; }

/* Loading */
.load-wrap { text-align: center; padding: 80px 20px; }
.load-title { font-size: 24px; font-weight: 700; margin-bottom: 16px; color: #1a2d4a; }
.load-sub { color: #3a5a72; font-size: 14px; line-height: 1.6; }
.load-progress-msg { font-size: 14px; color: #29ABE2; font-weight: 600; margin-bottom: 16px; min-height: 22px; transition: opacity 0.3s; }
.load-bar { width: 220px; height: 4px; background: #dce8f0; margin: 0 auto 24px; position: relative; overflow: hidden; border-radius: 2px; }
.load-inner { position: absolute; top: 0; left: -60%; height: 100%; width: 60%; background: linear-gradient(90deg, transparent, #29ABE2, transparent); animation: cd-slide 1.8s ease-in-out infinite; }
@keyframes cd-slide { 0% { left: -60%; } 100% { left: 100%; } }
.load-steps { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.load-step { font-size: 12px; color: #aac4d4; }
.load-step.done { color: #27ae60; font-weight: 600; }

/* Info / utility */
.info-box { background: #e8f7fd; border: 1px solid #b0d8ee; border-left: 4px solid #29ABE2; border-radius: 6px; padding: 16px 18px; margin-bottom: 16px; color: #1a2d4a; font-size: 14px; line-height: 1.7; }
.gold { color: #1a96cc; font-weight: 700; }
.small-w { max-width: 180px; }
.loc-pill { display: inline-flex; align-items: center; gap: 7px; background: #e8f7fd; border: 1px solid #b0d8ee; border-radius: 20px; padding: 4px 12px; margin-bottom: 10px; max-width: 100%; flex-wrap: wrap; }
.loc-pill span { font-size: 14px; color: #1a96cc; font-weight: 600; line-height: 1.5; }
.loc-pill--global { background: #e8f5e9; border-color: #a5d6a7; }
.loc-pill--global span { color: #2e7d32; }

/* Global target toggle */
.global-toggle-wrap { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; cursor: pointer; user-select: none; }
.global-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.global-toggle-slider { position: relative; display: inline-block; width: 40px; height: 22px; background: #c8d8e4; border-radius: 11px; transition: background 0.2s; flex-shrink: 0; }
.global-toggle-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.global-toggle-input:checked + .global-toggle-slider { background: #29ABE2; }
.global-toggle-input:checked + .global-toggle-slider::after { transform: translateX(18px); }
.global-toggle-label { font-size: 13px; font-weight: 600; color: #1a2d4a; }
.global-toggle-hint { font-size: 11px; color: #7a9db5; margin: -10px 0 16px; line-height: 1.4; }

/* AI section */
.ai-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 500px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
.ai-box { padding: 16px 18px; border-radius: 6px; }
.ai-box.primary   { background: #e8f7fd; border: 1px solid #b0d8ee; border-left: 3px solid #29ABE2; }
.ai-box.secondary { background: #f4f9fc; border: 1px solid #dce8f0; border-left: 3px solid #1a2d4a; }
.ai-box-title { font-size: 14px; font-weight: 700; color: #1a2d4a; margin-bottom: 6px; }
.ai-box-body  { font-size: 14px; color: #3a5a72; line-height: 1.6; }
.ai-badge { display: inline-block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; padding: 2px 7px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }
.ai-badge.foundation { background: #e8f7fd; color: #1a96cc; }
.ai-badge.emerging   { background: #fff8e8; color: #b7860b; }

/* PageSpeed card */
#cd-ps-card { text-align: center; display: flex; align-content: center; align-items: center; flex-direction: column; }
.ps-header { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-start; }
.ps-scores { display: flex; gap: 14px; flex-shrink: 0; }
.ps-score-cell { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.ps-circle { width: 62px; height: 62px; border-radius: 50%; border: 5px solid; display: flex; align-items: center; justify-content: center; }
.ps-circle span { font-size: 20px; font-weight: 700; }
.ps-score-lbl { font-size: 10px; color: #3a5a72; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }
.ps-score-tag { font-size: 10px; font-weight: 700; margin-top: 2px; }
.ps-verdict { flex: 1; min-width: 160px; }
.ps-verdict-text { font-size: 14px; color: #3a5a72; line-height: 1.6; margin: 0 0 6px; }
.ps-powered { font-size: 10px; color: #aac4d4; letter-spacing: 0.5px; }

.ps-vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: #dce8f0; border-radius: 6px; overflow: hidden; margin-top: 16px; }
@media (max-width: 499px) { .ps-vitals { grid-template-columns: repeat(2, 1fr); } }
.ps-vital-cell { background: #1a2d4a; padding: 20px 14px; text-align: center; cursor: default; }
.ps-vital-val { font-size: 22px; font-weight: 700; color: #29ABE2; line-height: 1; margin-bottom: 7px; }
.ps-vital-lbl { font-size: 11px; color: #8fb3cc; text-transform: uppercase; letter-spacing: 1px; line-height: 1.4; }

.ps-opps { margin-top: 14px; }
.ps-opps-title { font-size: 11px; font-weight: 700; color: #1a2d4a; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 7px; }
.ps-opp-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; background: #fff8e8; border: 1px solid #f0d080; border-left: 3px solid #d97706; border-radius: 0 4px 4px 0; margin-bottom: 4px; }
.ps-opp-name { font-size: 12px; color: #1a2d4a; }
.ps-opp-val { font-size: 11px; color: #d97706; font-weight: 700; white-space: nowrap; margin-left: 10px; }

.ps-advisory { margin-top: 14px; border-radius: 0 6px 6px 0; padding: 12px 16px; border-left-width: 4px; border-left-style: solid; }
.ps-advisory--warn { background: #fff8e8; border: 1px solid #f0d080; border-left: 4px solid #d97706; }
.ps-advisory--info { background: #e8f7fd; border: 1px solid #b0d8ee; border-left: 4px solid #29ABE2; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.ps-advisory--good { background: #eafaf1; border: 1px solid #a9dfbf; border-left: 4px solid #27ae60; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.ps-adv-head { font-size: 14px; font-weight: 700; color: #92400e; margin-bottom: 8px; }
.ps-adv-body { font-size: 12px; color: #3a5a72; line-height: 1.6; margin: 0 0 10px; }
.ps-advisory--info .ps-adv-body, .ps-advisory--good .ps-adv-body { margin-bottom: 0; }
.ps-adv-price { background: #ffffff; border: 1px solid #f0d080; border-radius: 6px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.ps-adv-price > span:first-child { font-size: 14px; font-weight: 700; color: #1a2d4a; }
.ps-adv-fee { font-size: 18px; font-weight: 700; color: #d97706; }

/* At-a-Glance Summary */
.ataglance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 500px) { .ataglance-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } }
.ataglance-cell { background: #1a2d4a; border-radius: 8px; padding: 18px 14px; text-align: center; }
.ataglance-val { font-size: 28px; font-weight: 700; color: #29ABE2; line-height: 1; margin-bottom: 6px; }
.ataglance-lbl { font-size: 10px; color: #8fb3cc; text-transform: uppercase; letter-spacing: 1px; line-height: 1.4; }

/* Competitor gap — two chart panels */
.gap-charts-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gap-chart-panel { background: #f4f9fc; border: 1px solid #dce8f0; border-radius: 8px; padding: 14px 16px 10px; }
.gap-chart-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2px; }
.gap-chart-sub   { font-size: 12px; color: #3a5a72; margin-bottom: 10px; }
.gap-canvas      { display: block; width: 100% !important; height: 130px; }

/* Competitor gap — stacked bar redesign */
.gap-stats-row { display: flex; gap: 0; border: 1px solid #dce8f0; border-radius: 8px; overflow: hidden; margin-bottom: 0; }
.gap-stat-box { flex: 1; padding: 14px 10px; text-align: center; border-right: 1px solid #dce8f0; }
.gap-stat-box:last-child { border-right: none; }
.gap-stat-val { font-size: 20px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.gap-stat-lbl { font-size: 10px; color: #7a9db5; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.3; }
.gap-stacked-bar { display: flex; height: 36px; border-radius: 6px; overflow: hidden; width: 100%; }
.gap-stacked-yours { background: #29ABE2; display: flex; align-items: center; justify-content: center; transition: width 0.8s ease; overflow: hidden; }
.gap-stacked-comp  { background: #e74c3c; display: flex; align-items: center; justify-content: center; transition: width 0.8s ease; overflow: hidden; }
.gap-stacked-label { font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; padding: 0 6px; }
@media (max-width: 480px) { .gap-stat-val { font-size: 16px; } .gap-stat-lbl { font-size: 9px; } .gap-stacked-label { display: none; } }

/* Competitor gap chart (legacy bar rows — kept for reference) */
.gap-section-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.gap-section-lbl.gap-yours { color: #29ABE2; }
.gap-section-lbl.gap-comp  { color: #e74c3c; }
.gap-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.gap-label { font-size: 12px; color: #1a2d4a; font-weight: 600; min-width: 130px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.gap-bar-wrap { flex: 1; height: 9px; background: #eef4f8; border-radius: 5px; overflow: hidden; }
.gap-bar-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; min-width: 4px; }
.gap-bar-fill.yours { background: #29ABE2; }
.gap-bar-fill.comp  { background: #e74c3c; }
.gap-vol { font-size: 11px; color: #3a5a72; min-width: 56px; text-align: right; flex-shrink: 0; }

/* Accordion */
.accordion-card { border-left: 3px solid #29ABE2; }
.accordion-header { position: relative; display: flex; align-items: center; cursor: pointer; user-select: none; padding-bottom: 2px; text-align: center; }
.accordion-header > .slabel { flex: 1; text-align: center; }
.accordion-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: #29ABE2; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 300; line-height: 1; flex-shrink: 0; transition: transform 0.25s, background 0.2s; }
.accordion-toggle.open { transform: translateY(-50%) rotate(45deg); background: #3a5a72; }
.accordion-header:hover .accordion-toggle { background: #1a96cc; }
.accordion-subtitle { font-size: 14px; color: #3a5a72; line-height: 1.6; margin: 10px 0 0; text-align: center; }
.accordion-body { overflow: hidden; max-height: 0; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; }
.accordion-body.open { max-height: 3000px; opacity: 1; }
@media (max-width: 599px) { .accordion-toggle { display: none; } }

/* Revenue Hero */
.revenue-hero { background: #1a2d4a; border-radius: 8px; padding: 36px 28px; margin-bottom: 16px; text-align: center; }
.revenue-hero-eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #29ABE2; font-weight: 700; margin-bottom: 12px; }
.revenue-hero-figure { font-size: 72px; font-weight: 700; color: #ffffff; line-height: 1; margin-bottom: 12px; }
@media (max-width: 560px) { .revenue-hero-figure { font-size: 52px; } }
.revenue-hero-sub { font-size: 14px; color: #8fb3cc; line-height: 1.6; }
.revenue-hero-calc { margin-top: 16px; font-size: 12px; color: #4a7a9b; line-height: 1.8; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; }

/* Dark card (Financial Case) */
.card--dark { background: #1a2d4a; border-color: #253f5e; color: #e0ecf5; }
.card--dark .slabel { color: #29ABE2; }
.card--dark .compare-box.earn { background: #1e3a5f; border-color: #2a4f74; }
.card--dark .compare-box.ads  { background: #2a1e25; border-color: #4a2a30; }
.card--dark .compare-box.cost { background: #1a3028; border-color: #264a38; }
.card--dark .compare-lbl.gold  { color: #63c5e8; }
.card--dark .compare-lbl.red   { color: #e87c7c; }
.card--dark .compare-lbl.green { color: #5bc98a; }
.card--dark .compare-val.gold  { color: #ffffff; }
.card--dark .compare-val.red   { color: #e87c7c; }
.card--dark .compare-val.green { color: #5bc98a; }
.card--dark .compare-sub { color: #aac4d4; font-size: 14px; }
.card--dark .compare-box { padding: 26px 22px; }
.card--dark .saving-banner { background: #0f1e30; }
.card--dark .saving-text { color: #8fb3cc; }
.card--dark .invest-banner { background: #1e3a5f; border-color: #2a4f74; border-left-color: #29ABE2; }
.card--dark .invest-title { color: #e0ecf5; }
.card--dark .invest-text { color: #8fb3cc; }
.card--dark .src-note { color: #6a93aa; }

/* Print / PDF */
@media print {
  /* Hide everything on the page, then reveal only the plugin */
  body * { visibility: hidden; }
  #cd-seo-quote-root, #cd-seo-quote-root * { visibility: visible; }
  #cd-seo-quote-root {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  /* Hide plugin chrome */
  .header, .step-nav, .cta-wrap { display: none !important; }
  /* Clean up layout for print */
  .seo-root { background: #ffffff; min-height: unset; }
  .wrap { padding: 0; margin: 0; max-width: 100%; }
  .card { box-shadow: none; border: 1px solid #dce8f0; break-inside: avoid; margin-bottom: 12px; }
  canvas { max-width: 100% !important; }

  /* Keyword table print fixes — prevent awkward text wrapping */
  .kw-item { break-inside: avoid; }
  .kw-item-top { flex-wrap: nowrap; align-items: flex-start; gap: 6px; }
  .kw-item-name {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    flex: 1 1 auto;
    min-width: 0;
  }
  .kw-badge { flex-shrink: 0; white-space: nowrap; }
  .kw-item-stats { flex-wrap: wrap; gap: 6px; }
  .kw-stat-divider { display: none; }
  .kw-list { display: block; }
}
