/* ==========================================================================
   /pool-builder-seo-services/ - sits on top of styles.css
   ========================================================================== */

/* ---------- Hero ---------- */
.svc-hero { position: relative; background: var(--navy); color: #c7d6dd; padding: calc(var(--header-h) + 48px) 0 140px; overflow: hidden; }
.svc-hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.svc-crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: .82rem; }
.svc-crumbs li + li::before { content: "/"; margin-right: 6px; color: #5d7a87; }
.svc-crumbs a { color: var(--cyan-soft); text-decoration: none; }
.svc-crumbs a:hover { color: #fff; }
.svc-crumbs [aria-current] { color: #9fb7c2; }
.svc-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin: 22px 0 20px; max-width: 980px; }
.svc-hero h1 span { display: block; color: var(--cyan); }
.svc-lead { font-size: 1.15rem; max-width: 740px; color: #d3e1e7; }
.svc-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.svc-cta .btn--lg { padding: 16px 26px; }
.svc-micro { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px; font-size: .84rem; color: #9fb7c2; }
.svc-micro span::before { content: "✓"; color: var(--cyan); font-weight: 800; margin-right: 6px; }
.svc-stats { list-style: none; margin: 52px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; overflow: hidden; text-align: left; }
.svc-stats li { background: rgba(5, 42, 60, .92); padding: 22px 24px; font-size: .88rem; line-height: 1.45; }
.svc-stats strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #fff; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.svc-stats li:nth-child(2) strong { color: var(--orange); }
.svc-stats li:nth-child(4) strong { color: var(--cyan); }
.svc-foot { margin-top: 14px; font-size: .78rem; color: #8ea6b1; max-width: 720px; }
.svc-foot a { color: var(--cyan-soft); }

/* ---------- Shared bits ---------- */
.svc-h3 { font-size: 1.25rem; margin: 48px 0 18px; }
.svc-h3--light { color: #fff; }
.svc-body { max-width: 780px; margin-top: 18px; font-size: 1.05rem; }
.svc-small { font-size: .8rem; color: var(--muted); margin-top: 14px; max-width: 860px; }
.answer { max-width: 860px; margin-top: -24px; padding: 22px 26px; background: #fff; border-left: 4px solid var(--cyan); border-radius: 0 14px 14px 0; font-size: 1.12rem; line-height: 1.6; color: var(--ink); box-shadow: var(--shadow-soft); }
.section--soft .answer { background: #fff; }
#local-seo .answer { background: var(--bg-tint); box-shadow: none; }
.answer--dark { margin: 22px 0 18px; background: rgba(255, 255, 255, .06); color: #e6eef2; box-shadow: none; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-dark); text-decoration: none; }
.svc-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.svc-link:hover .icon { transform: translateX(3px); }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.takeaway-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; background: var(--navy); color: #c7d6dd; border-radius: var(--radius); padding: 24px 28px; }
.takeaway-bar strong { color: #fff; }
.takeaway-bar .btn { flex: none; }
.takeaway-bar--dark { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Data findings ---------- */
.finding { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.finding-head { display: flex; align-items: center; gap: 14px; }
.finding-num { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--cyan); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.finding-head h3 { font-size: 1.3rem; }
.finding-body { margin-top: 16px; font-size: 1rem; }
.finding--split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.finding--split > * { min-width: 0; }
.finding--why { background: var(--bg-soft); border: 0; }
.finding--why h3 { font-size: 1.3rem; margin-bottom: 12px; }

.gap-bar { display: flex; height: 44px; margin-top: 24px; border-radius: 12px; overflow: hidden; font-size: .85rem; font-weight: 700; }
.gap-bar span { width: var(--w); display: flex; align-items: center; padding-left: 14px; white-space: nowrap; }
.gap-bar-a, .gap-card--a i { background: var(--teal); color: #fff; }
.gap-bar-b, .gap-card--b i { background: var(--navy); color: #fff; }
.gap-bar-c, .gap-card--c i { background: var(--orange); color: var(--navy); }
.gap-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gap-card { background: var(--bg-tint); border-radius: 14px; padding: 18px; display: grid; align-content: start; gap: 8px; font-size: .92rem; }
.gap-label { display: flex; gap: 8px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gap-label i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.gap-card strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.gap-card strong small { font-size: 1rem; color: var(--teal-dark); }

.rank-move { display: flex; align-items: stretch; gap: 16px; margin-top: 24px; }
.rank-move > div { flex: 1; background: var(--bg-tint); border-radius: 14px; padding: 16px 18px; }
.rank-move span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.rank-move strong { display: block; margin-top: 6px; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--muted); }
.rank-move .is-up { background: var(--navy); }
.rank-move .is-up span { color: #9fb7c2; }
.rank-move .is-up strong { color: var(--cyan); }
.rank-move > .icon { flex: none; align-self: center; color: var(--teal); width: 26px; height: 26px; }

.rv-chart { margin: 0; background: var(--bg-tint); border-radius: 16px; padding: 22px 22px 18px; }
.rv-chart figcaption strong { font-size: .98rem; color: var(--ink); line-height: 1.35; display: block; }
.rv-plot { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 220px; margin-top: 30px; padding-bottom: 42px; border-bottom: 0; }
.rv-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.rv-col i { display: block; width: 100%; max-width: 48px; height: var(--h); background: #c5d3d9; border-radius: 6px 6px 0 0; transform-origin: bottom; }
.rv-col.is-hi i { background: var(--teal); }
.rv-col b { font-size: .8rem; color: var(--ink); margin-bottom: 6px; }
.rv-col span { position: absolute; bottom: -42px; left: 0; right: 0; text-align: center; font-size: .8rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.rv-col span small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); }
.rv-col::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; border-bottom: 1px solid #cfdde2; }
.rv-col.is-line::before { content: "20-review line"; position: absolute; left: -6px; top: -26px; bottom: -6px; border-left: 2px dashed var(--muted); padding-left: 6px; font-size: .7rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rv-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .82rem; }
.rv-legend span { display: inline-flex; align-items: center; gap: 8px; }
.rv-legend i { width: 12px; height: 12px; border-radius: 3px; background: #c5d3d9; }
.rv-legend .is-hi i { background: var(--teal); }
.rv-legend strong { color: var(--ink); }
.rv-cap { margin-top: 10px; font-size: .74rem; color: var(--muted); line-height: 1.5; }

.vs-bars { background: var(--bg-tint); border-radius: 16px; padding: 24px; }
.vs-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.vs-row { display: grid; grid-template-columns: 130px 1fr 64px; gap: 12px; align-items: center; font-size: .88rem; font-weight: 600; color: var(--ink); }
.vs-row + .vs-row { margin-top: 12px; }
.vs-row small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }
.vs-row > div { height: 28px; background: #dde9ed; border-radius: 8px; overflow: hidden; }
.vs-row i { display: block; height: 100%; width: var(--w); background: #9fb3bb; border-radius: 8px; transform-origin: left; }
.vs-row.is-hi i { background: var(--teal); }
.vs-row strong { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; text-align: right; }

.why-stats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.why-stats li { background: #fff; border-radius: 14px; border-top: 3px solid var(--cyan); padding: 16px 18px; font-size: .88rem; line-height: 1.45; }
.why-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 6px; }

/* ---------- Tables ---------- */
.svc-table-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.svc-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.svc-table th, .svc-table td { padding: 18px 22px; text-align: left; vertical-align: top; }
.svc-table thead th { background: var(--navy); color: #e6eef2; font-size: .86rem; }
.svc-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.svc-table tbody th { color: var(--ink); width: 24%; }
.svc-table tbody th .icon { display: inline-block; width: 18px; height: 18px; color: var(--teal); vertical-align: -3px; margin-right: 10px; }
.svc-table td strong { color: var(--teal-dark); font-family: var(--font-head); font-size: 1.05rem; }
.svc-table td:last-child { background: var(--bg-tint); }
.score td:last-child { white-space: nowrap; }
.signal { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); font-size: .86rem; }
.signal i { width: 6px; height: 16px; border-radius: 2px; background: #cfdde2; }
.signal i:nth-child(-n + 5) { background: #cfdde2; }
.signal[style*="--n:5"] i:nth-child(-n + 5), .signal[style*="--n:4"] i:nth-child(-n + 4), .signal[style*="--n:3"] i:nth-child(-n + 3), .signal[style*="--n:2"] i:nth-child(-n + 2) { background: var(--teal); }
.signal--new[style*="--n:2"] i:nth-child(-n + 2) { background: var(--orange-dark); }
.signal i:last-of-type { margin-right: 8px; }

/* ---------- AEO ---------- */
.aeo-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.aeo-grid h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.ai-stat { margin: 0; background: linear-gradient(160deg, rgba(34, 194, 214, .2), rgba(34, 194, 214, .04)); border: 1px solid rgba(34, 194, 214, .35); border-radius: 22px; padding: 30px; }
.ai-stat > strong { display: block; font-family: var(--font-head); font-size: clamp(4rem, 8vw, 5.6rem); font-weight: 800; line-height: .9; color: var(--cyan); letter-spacing: -0.04em; }
.ai-stat figcaption { margin-top: 12px; font-size: 1rem; color: #e6eef2; }
.ai-bars { margin-top: 22px; display: grid; gap: 10px; }
.ai-bars div { display: grid; grid-template-columns: 44px 1fr 40px; gap: 10px; align-items: center; font-size: .8rem; }
.ai-bars i { display: block; height: 14px; width: var(--w); background: rgba(255, 255, 255, .3); border-radius: 7px; }
.ai-bars .is-now i { background: var(--cyan); }
.ai-bars b { color: #fff; text-align: right; }
.ai-src { margin-top: 16px; font-size: .74rem; color: #8ea6b1; }
.aeo-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aeo-cards li { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 22px; font-size: .92rem; line-height: 1.55; }
.aeo-cards .icon { width: 26px; height: 26px; color: var(--cyan); margin-bottom: 14px; }
.aeo-cards strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }

/* ---------- Local SEO ---------- */
.local-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.local-grid > * { min-width: 0; }
.find-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.find-list li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; grid-template-columns: 150px 1fr; gap: 6px 18px; }
.find-list strong { grid-row: span 2; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--teal-dark); line-height: 1.1; }
.find-list strong small { display: block; font-size: .85rem; color: var(--muted); }
.find-what { font-weight: 700; color: var(--ink); font-size: .95rem; }
.find-do { font-size: .9rem; }
.local-incl { background: var(--bg-tint); border-radius: 20px; padding: 6px 26px 26px; }
.ticks--ink { color: var(--text); margin-bottom: 24px; }
.ticks--ink .icon { color: var(--teal); }

/* ---------- Performance ---------- */
.ribbon { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: -16px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.ribbon span + span::before { content: "·"; margin: 0 14px; color: var(--teal); }
.proof-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.proof-link h3 { font-size: 1.15rem; margin-bottom: 6px; }
.proof-link p { font-size: .92rem; max-width: 520px; }
.proof-link-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Process / pricing ---------- */
.svc-steps { list-style: none; margin: 0; padding: 0; }
.svc-steps .step p { font-size: .92rem; }
.price-snap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.snap { position: relative; background: #fff; border: 1.5px solid #cfe6ec; border-radius: 20px; padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 12px; font-size: .94rem; }
.snap h3 { font-family: var(--font-head); font-size: 1.45rem; }
.snap-price { color: var(--muted); }
.snap-price strong { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.snap .btn { margin-top: auto; }
.snap--full { background: var(--navy); border-color: var(--navy); color: #d3e1e7; }
.snap--full h3, .snap--full .snap-price strong { color: #fff; }
.snap--full .snap-price { color: var(--cyan); }
.snap-more { text-align: center; margin-top: 16px; }


.nav-list a[aria-current="page"] { color: var(--cyan); }

@media (prefers-reduced-motion: no-preference) {
  .svc-hero-inner > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .svc-hero-inner > :nth-child(2) { animation-delay: .05s; }
  .svc-hero-inner > :nth-child(3) { animation-delay: .1s; }
  .svc-hero-inner > :nth-child(4) { animation-delay: .15s; }
  .svc-hero-inner > :nth-child(5) { animation-delay: .2s; }
  .svc-hero-inner > :nth-child(n + 6) { animation-delay: .28s; }
}

@media (max-width: 960px) {
  .svc-stats { grid-template-columns: repeat(2, 1fr); }
  .finding--split, .aeo-grid, .local-grid { grid-template-columns: 1fr; gap: 28px; }
  .aeo-cards { grid-template-columns: repeat(2, 1fr); }
  .proof-link { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .finding { padding: 22px 18px; }
  .gap-cards, .why-stats { grid-template-columns: 1fr; }
  .gap-bar span { font-size: .72rem; padding-left: 8px; }
  .gap-bar-c { padding-left: 4px !important; }
  .takeaway-bar { flex-direction: column; align-items: flex-start; padding: 22px; }
  /* tables -> stacked cards */
  .svc-table-wrap { border: 0; border-radius: 0; overflow: visible; background: none; }
  .svc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; width: 100%; }
  .svc-table tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
  .svc-table tbody tr + tr > * { border-top: 0; }
  .svc-table tbody th { background: var(--navy); color: #fff; padding: 12px 16px; width: 100%; }
  .svc-table tbody th .icon { color: var(--cyan); }
  .svc-table td { padding: 12px 16px; }
  .svc-table td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; color: var(--muted); }
  .score td:last-child { white-space: normal; }
  .find-list li { grid-template-columns: 1fr; }
  .find-list strong { grid-row: auto; }
  .rv-plot { gap: 6px; height: 200px; }
  .rv-col b { font-size: .7rem; }
  .rv-col span { font-size: .7rem; }
  .vs-row { grid-template-columns: 96px 1fr 56px; font-size: .8rem; }
  .price-snap { grid-template-columns: 1fr; max-width: 520px; gap: 28px; }
}
@media (max-width: 600px) {
  .svc-hero { padding: calc(var(--header-h) + 28px) 0 96px; }
  .svc-lead { font-size: 1.02rem; }
  .svc-cta { width: 100%; }
  .svc-cta .btn { width: 100%; }
  .svc-stats li { padding: 16px 14px; font-size: .78rem; }
  .aeo-cards { grid-template-columns: 1fr; }
  .rank-move { gap: 10px; }
  .rank-move strong { font-size: 1.8rem; }
  .ribbon { font-size: .68rem; }
  .ribbon span + span::before { margin: 0 8px; }
  .proof-link { padding: 22px 18px; }
  .proof-link-actions, .proof-link-actions .btn { width: 100%; }
  .local-incl { padding: 4px 18px 20px; }
}
