/* Compare pages (page-templates/compare.php + inc/compare-render.php). Also loaded on the /compare/ hub. */

/* ---------- Hero ---------- */
.cmp-hero{padding:56px 0 48px}
.cmp-hero-in{max-width:920px}
.cmp-h1{font-size:clamp(32px,4.6vw,54px);line-height:1.08;overflow-wrap:break-word}
.cmp-intro{font-size:18px;max-width:760px;margin:0 auto 12px}
.cmp-vs{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px;margin:26px 0 6px}
.cmp-vs-x{font-size:13px;font-weight:900;letter-spacing:1.2px;text-transform:uppercase;color:#fff;background:var(--cta);width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
.cmp-hero-btns{justify-content:center;margin-top:26px}

/* Logo chip: logos keep their own colours; the white SEO Audit Software logo sits on a dark chip. */
.cmp-logo{display:inline-flex;align-items:center;justify-content:center;min-height:60px;padding:10px 18px;border-radius:14px;background:#fff;border:1px solid var(--line2);box-shadow:0 10px 24px rgba(21,26,61,.06);max-width:100%}
.cmp-logo.dark{background:var(--ink);border-color:var(--ink)}
.cmp-logo img{display:block;max-height:38px;width:auto;max-width:170px}

/* ---------- Comparison table section ---------- */
.cmp-head{max-width:860px;margin:0 auto 28px;text-align:center}
.cmp-sec-title{margin-top:0}
.cmp-head .sub{margin:0 0 12px}
.cmp-key{margin:18px auto 0;max-width:820px;text-align:left;font-size:16px;line-height:1.65;color:var(--text);background:#fff;border-radius:16px;padding:16px 20px;border-left:4px solid var(--violet);box-shadow:0 10px 24px rgba(21,26,61,.05)}
.cmp-key strong,.cmp-key b{color:var(--ink)}
.cmp-table-area{max-width:980px;margin:0 auto}
.cmp-table-wrap{margin:0 auto 18px;-webkit-overflow-scrolling:touch}
.cmp-table th:first-child,.cmp-table td:first-child{text-align:left}
.cmp-table tbody td:first-child{font-weight:600;color:var(--ink)}
.cmp-table thead th{vertical-align:middle}
.cmp-table thead .cmp-logo{min-height:50px;padding:8px 14px;box-shadow:none}
.cmp-table thead .cmp-logo img{max-height:30px;max-width:140px}
.cmp-table tr.cmp-group th,.cmp-table tr.cmp-group td{background:var(--bg-soft);font-size:12.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--indigo);padding-top:11px;padding-bottom:11px}
.cmp-table td span{display:inline}
.cmp-note{font-size:14px;line-height:1.6;color:var(--soft);text-align:center;margin:6px 0 0}
.cmp-note a{color:var(--indigo)}

/* ---------- Content sections ---------- */
.cmp-flow{max-width:900px}
.cmp-group-block{margin:0 0 44px}
.cmp-group-block:last-child{margin-bottom:0}
.cmp-flow p,.cmp-flow li{font-size:17px;line-height:1.75;color:var(--text)}
.cmp-flow p{margin:0 0 14px}
.cmp-title{font-size:clamp(24px,2.6vw,30px);line-height:1.25;font-weight:800;color:var(--ink);margin:0 0 14px;text-wrap:balance}
.cmp-h4,.cmp-col h4{font-size:19px;line-height:1.35;font-weight:800;color:var(--ink);margin:22px 0 10px}
.cmp-col h4{margin-top:0}
.cmp-h5,.cmp-h6{font-size:17px;font-weight:800;margin:18px 0 8px}
.cmp-callout{padding:28px 30px;border:2px solid transparent;background:linear-gradient(#fff,#fff) padding-box,var(--magic) border-box;box-shadow:0 18px 40px rgba(67,81,180,.10)}
.cmp-callout p:last-child{margin-bottom:0}
.cmp-list,.cmp-col ul{list-style:none;padding:0;margin:0 0 18px}
.cmp-list li,.cmp-col ul li{position:relative;padding-left:30px;margin:0 0 10px;font-size:16px;line-height:1.6;color:var(--text)}
.cmp-list li::before,.cmp-col ul li::before{content:"";position:absolute;left:0;top:3px;width:20px;height:20px;border-radius:50%;background:var(--indigo-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234351B4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat}
.cmp-steps{list-style:none;counter-reset:cmp;padding:0;margin:0 0 18px}
.cmp-steps li{counter-increment:cmp;position:relative;padding:16px 18px 16px 64px;margin:0 0 12px;background:#fff;border:1px solid var(--line);border-radius:16px}
.cmp-steps li::before{content:counter(cmp);position:absolute;left:16px;top:14px;width:34px;height:34px;border-radius:50%;background:var(--magic);color:#fff;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center}
.cmp-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin:22px 0}
.cmp-col{padding:24px}
.cmp-col ul{margin:0}
.cmp-raw{margin:0 0 14px;overflow-wrap:break-word}
.cmp-raw img{height:auto}
.cmp-anchor{scroll-margin-top:100px}
.cmp-flow .cmp-table-wrap{margin:8px 0 20px}

/* ---------- FAQ ---------- */
.cmp-faq{max-width:860px}
.cmp-faq-head{margin-bottom:28px}
.cmp-faq-head .cmp-title{font-size:clamp(26px,3vw,36px);margin:14px 0 0}
.cmp-faq details p{margin:10px 0 0}

/* ---------- CTA band (old audit form section) ---------- */
.cmp-cta-sec{padding:24px 0 88px}
.cmp-cta{padding:52px 32px}
.cmp-cta .h2{color:#fff;margin:0 auto 6px;max-width:820px}
.cmp-cta .sub-head{display:block;font-size:17px;font-weight:500;line-height:1.5;color:#E6E3FF;margin-top:10px;letter-spacing:0}
.cmp-form{max-width:900px;margin:26px auto 0;text-align:left;color:var(--ink)}
.cmp-form-note{margin:16px 0 0;font-size:15px;color:#EDEAFF}
.cmp-cta .cmp-raw,.cmp-cta p{color:#EDEAFF}
.cmp-cta a:not(.btn):not(.btn-w){color:#fff}

/* ---------- Testimonials ---------- */
.cmp-quotes{padding-top:0}
.cmp-quote{display:flex;flex-direction:column;gap:6px;box-shadow:0 14px 34px rgba(21,26,61,.06)}
.cmp-quote h2{font-size:19px;line-height:1.4;font-weight:800;color:var(--ink);margin:4px 0 6px}
.cmp-quote p{margin:0 0 6px;font-size:15.5px;line-height:1.65;color:var(--muted)}
.cmp-quote h3,.cmp-quote h5{font-size:16px;font-weight:800;color:var(--ink);margin:10px 0 0}
.cmp-ask{font-size:12.5px!important;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--indigo)!important}

/* ---------- Cards (hub) ---------- */
.cmp-grid{margin:0 0 20px}
.cmp-card{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:var(--ink);transition:transform .15s ease,box-shadow .15s ease}
.cmp-card:hover{color:var(--ink);transform:translateY(-2px);box-shadow:0 18px 36px rgba(67,81,180,.12)}
.cmp-card .cmp-logo{align-self:flex-start;margin-bottom:10px;background:var(--bg-soft);border-color:var(--line);box-shadow:none}
.cmp-card small{font-size:12.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--soft)}
.cmp-card h4{font-size:19px;font-weight:800;margin:0;color:var(--ink)}
.cmp-card p{font-size:15px;line-height:1.6;color:var(--muted);margin:4px 0 0}

@media (max-width:760px){
  .cmp-hero{padding:36px 0 36px}
  .cmp-intro{font-size:16.5px}
  .cmp-callout{padding:22px 20px}
  .cmp-cta{padding:40px 20px}
  .cmp-steps li{padding-left:58px}
  .cmp-flow p,.cmp-flow li{font-size:16px}
}
