/* SEORAPID — free SEO audit page */

.audit-page { background: var(--bg-soft); }
.audit-page .site-header:not(.is-scrolled) .brand-logo--light { display: block; }

.audit-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-hero);
  padding: 150px 0 200px;
}
.audit-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 243, 255, .45), rgba(95, 243, 255, 0) 70%); pointer-events: none;
}
.audit-hero-inner { position: relative; z-index: 2; max-width: 980px; text-align: center; }
.audit-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; margin-bottom: 18px; text-wrap: balance; }
.audit-lead { max-width: 700px; margin: 0 auto 40px; color: rgba(255, 255, 255, .85); font-size: clamp(17px, 1.6vw, 19px); }

.audit-card {
  text-align: left; background: #fff; color: var(--ink); border-radius: 24px; padding: 30px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.audit-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.audit-fields .field { margin: 0; }
.opt { font-weight: 500; color: var(--ink-500); }
.audit-foot { display: flex; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.audit-foot .consent { margin: 0; flex: 1 1 300px; }
.audit-foot .cf-turnstile { flex: 0 0 auto; min-height: 65px; }
.audit-foot .btn { flex: 0 0 auto; }
.audit-card .form-status { text-align: left; }

/* Report section (opens below the form) */
.audit-report { background: var(--bg-soft); padding: 50px 0 90px; scroll-margin-top: 70px; }
.audit-page .audit-report { padding-top: 10px; }
.ts-holder { display: flex; justify-content: center; margin: 14px auto 0; max-width: 340px; }
.ts-holder:empty { display: none; }
.progress-card #a-error { margin-top: 16px; }

/* Progress */
.progress-card {
  max-width: 640px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 40px;
  box-shadow: var(--shadow); text-align: center;
}
.progress-rocket img { width: 60px; height: auto; margin: 0 auto 14px; animation: hover 1.6s ease-in-out infinite; }
.progress-card h2 { font-size: 26px; overflow-wrap: anywhere; }
.progress-steps { text-align: left; display: grid; gap: 12px; margin: 26px auto 18px; max-width: 420px; }
.progress-steps li { position: relative; padding-left: 34px; color: var(--ink-500); transition: color .3s; }
.progress-steps li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); box-sizing: border-box;
}
.progress-steps li.active { color: var(--ink); font-weight: 600; }
.progress-steps li.active::before { border-color: var(--teal); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress-steps li.done { color: var(--ink-soft); }
.progress-steps li.done::before { border: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.progress-note { color: var(--ink-500); font-size: 14px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.res-head, .res-hero, .res-block, .res-cta, .res-note {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.res-head { padding: 34px; display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 24px; }
.score-main { display: flex; align-items: center; gap: 30px; }
.score-main h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; overflow-wrap: anywhere; }
.res-sub { color: var(--ink-soft); margin: 0 0 4px; font-size: 17px; }
.res-meta { color: var(--ink-500); font-size: 13px; margin: 0; }
.score-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.score-item { text-align: center; padding: 18px 10px; border-radius: 16px; background: var(--bg-soft); }
.score-item .label { display: block; margin-top: 10px; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.score-item .hint { display: block; color: var(--ink-500); font-size: 12px; }

/* Gauges */
.gauge { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: #e7e5f3; stroke-width: 9; }
.gauge .bar { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.gauge .val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums;
}
.gauge-lg { width: 150px; height: 150px; flex-shrink: 0; margin: 0; }
.gauge-lg .val { font-size: 44px; }
.gauge-lg .track, .gauge-lg .bar { stroke-width: 10; }
.g-good .bar { stroke: var(--mint-500); } .g-good .val { color: var(--mint-700); }
.g-ok .bar { stroke: var(--amber-500); } .g-ok .val { color: var(--amber-700); }
.g-bad .bar { stroke: var(--pink-500); } .g-bad .val { color: var(--pink-600); }
.g-na .val { color: var(--ink-500); font-size: 18px; }

/* Blocks */
.res-block { padding: 30px 34px; margin-bottom: 24px; }
.res-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.res-block-head h3 { margin: 0; font-size: 22px; }
.muted { color: var(--ink-500); font-weight: 600; font-size: 15px; }
.data-src { color: var(--ink-500); font-size: 13px; }
.res-note { padding: 18px 24px; margin: -8px 0 24px; color: var(--ink-soft); font-size: 15px; border-left: 4px solid var(--amber); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { padding: 18px; border-radius: 16px; background: var(--bg-soft); min-width: 0; }
.stat small { display: block; color: var(--ink-500); font-size: 13px; margin-bottom: 4px; }
.stat strong { font-family: var(--font-head); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .bar-dr { display: block; height: 6px; border-radius: 6px; margin-top: 10px; background: linear-gradient(90deg, var(--teal) var(--w), #e4e2f2 var(--w)); }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.table-card { min-width: 0; }
.table-card h4 { font-family: var(--font-head); font-size: 16px; margin: 0 0 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.audit-results table { width: 100%; border-collapse: collapse; font-size: 14px; }
.audit-results th { text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); background: var(--bg-soft); padding: 10px 14px; white-space: nowrap; }
.audit-results td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.audit-results td.num, .audit-results th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.audit-results td.kw { overflow-wrap: anywhere; }
.pos { display: inline-block; min-width: 30px; text-align: center; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pos-top { background: var(--mint-50); color: var(--mint-700); } .pos-mid { background: var(--amber-50); color: var(--amber-700); } .pos-low { background: #f0eef9; color: var(--ink-soft); }
.empty-row td { color: var(--ink-500); text-align: center; padding: 20px; }

.vitals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.vital { padding: 16px; border-radius: 14px; background: var(--bg-soft); border-top: 4px solid var(--line); min-width: 0; }
.vital small { display: block; color: var(--ink-500); font-size: 13px; }
.vital strong { font-family: var(--font-head); font-size: 22px; font-variant-numeric: tabular-nums; }
.vital.v-good { border-top-color: var(--mint-500); } .vital.v-ok { border-top-color: var(--amber-500); } .vital.v-bad { border-top-color: var(--pink-500); }

.legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-500); }
.legend .dot { margin-left: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.pass { background: var(--mint-500); } .dot.warn { background: var(--amber-500); } .dot.fail { background: var(--pink-500); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.check-group h4 { font-family: var(--font-head); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); margin: 0 0 6px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.check:first-of-type { border-top: 0; }
.check .ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.check .ico svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.check.pass .ico { background: var(--mint-500); } .check.warn .ico { background: var(--amber-500); } .check.fail .ico { background: var(--pink-500); }
.check strong { display: block; font-family: var(--font-head); font-size: 15px; }
.check span { display: block; color: var(--ink-soft); font-size: 14px; overflow-wrap: anywhere; }

.res-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 34px; background: var(--grad-hero); color: #fff; border: 0; }
.res-cta h3 { font-size: 24px; margin-bottom: 6px; }
.res-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.res-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .vitals { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .audit-fields { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: repeat(3, 1fr); }
  .checks { grid-template-columns: 1fr; }
  .check-group + .check-group { margin-top: 20px; }
}
@media (max-width: 640px) {
  .audit-hero { padding: 120px 0 170px; }
  .audit-card, .res-head, .res-block, .res-cta, .progress-card { padding: 22px 18px; }
  .score-main { flex-direction: column; text-align: center; gap: 18px; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .vitals { grid-template-columns: repeat(2, 1fr); }
  .audit-foot .btn { width: 100%; }
  .gauge-lg { width: 130px; height: 130px; }
}

.audit-results td.dom { white-space: nowrap; }
.audit-page .site-footer { padding: 30px 0; }
.audit-page .footer-bottom { padding-top: 0; }
.audit-page .footer-bottom a { color: rgba(255, 255, 255, .7); }
.audit-results td.kw { overflow-wrap: normal; word-break: normal; }
@media (max-width: 640px) { .audit-results table { min-width: 460px; } }

/* Lead capture in the CTA band */
.res-cta { align-items: flex-start; margin-bottom: 18px; }
.res-cta-copy { flex: 1 1 320px; }
.lead-form { flex: 1 1 460px; display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; }
.lead-form input[type="text"], .lead-form input[type="email"] {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 2px solid transparent; border-radius: 999px; padding: 13px 18px;
}
.lead-form input:focus { outline: none; border-color: var(--green); }
.lead-form input.is-invalid { border-color: var(--pink); }
.lead-form .btn { padding: 14px 24px; }
.lead-form .consent, .lead-form .form-status { grid-column: 1 / -1; margin: 0; }
.consent-light { color: rgba(255, 255, 255, .85); }
.consent-light a { color: #fff; }
.consent-light.is-invalid span { color: #ffd0d8; }
.lead-form .form-status { text-align: left; min-height: 0; }
.lead-form .form-status.ok { color: #8ff0c3; }
.lead-form .form-status.err { color: #ffd0d8; }
.res-again { text-align: center; color: var(--ink-500); font-size: 15px; margin: 0; }
.res-again a { color: var(--purple-700); font-weight: 600; }
@media (max-width: 900px) { .lead-form { grid-template-columns: 1fr; } .lead-form .btn { width: 100%; } }

/* URL-only form on /audit.html */
.audit-urlform { max-width: 720px; margin: 0 auto; }


/* ===== Visual sales report ===== */
:root { --bad: var(--pink-600); --bad-bar: var(--pink-500); --bad-bg: var(--pink-50); --ok: var(--amber-700); --ok-bar: var(--amber-500); --ok-bg: var(--amber-50); --good: var(--mint-700); --good-bar: var(--mint-500); --good-bg: var(--mint-50); }
.t-bad { --tc: var(--bad); --tbar: var(--bad-bar); --tb: var(--bad-bg); } .t-ok { --tc: var(--ok); --tbar: var(--ok-bar); --tb: var(--ok-bg); }
.t-good { --tc: var(--good); --tbar: var(--good-bar); --tb: var(--good-bg); } .t-na { --tc: var(--ink-500); --tbar: var(--ink-400); --tb: var(--bg-soft); }

/* Hero */
.res-hero { padding: 34px; margin-bottom: 24px; display: grid; grid-template-columns: auto 1fr; gap: 26px 34px; align-items: center; position: relative; overflow: hidden; }
.res-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--hc, var(--line)); }
.res-hero.h-bad { --gc: var(--pink-600); --hc: var(--pink-500); background: linear-gradient(180deg, #fff5f6 0, #fff 220px); }
.res-hero.h-ok { --gc: var(--amber-700); --hc: var(--amber-500); background: linear-gradient(180deg, #fffaf1 0, #fff 220px); }
.res-hero.h-good { --gc: var(--mint-700); --hc: var(--mint-500); }
.hero-score { position: relative; }
.grade { position: absolute; right: -10px; bottom: -4px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 28px; color: #fff; background: var(--gc, var(--ink-500)); box-shadow: 0 8px 24px -8px rgba(42, 15, 107, .45); border: 3px solid #fff; }
.hero-copy h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 2px 0 8px; overflow-wrap: anywhere; }
.verdict { font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4; margin: 0 0 14px; color: var(--ink); }
.h-bad .verdict { color: var(--pink-700); } .h-ok .verdict { color: var(--amber-700); }
.issue-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-bad { background: var(--bad-bg); color: var(--bad); } .chip-ok { background: var(--ok-bg); color: var(--ok); } .chip-good { background: var(--good-bg); color: var(--good); }
.res-hero .res-meta { margin: 0; }

.scale { grid-column: 1 / -1; padding-top: 18px; }
.scale-bar { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--pink-500) 0, var(--pink-500) 22%, var(--amber-500) 50%, var(--amber-400) 68%, var(--mint-400) 78%, var(--mint-500) 100%); }
.scale-you { position: absolute; left: var(--x, 0%); top: -38px; transform: translateX(-50%); transition: left 1.2s cubic-bezier(.2,.8,.2,1); }
.scale-you b { display: block; white-space: nowrap; font-family: var(--font-head); font-size: 12px; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 8px; }
.scale-you::after { content: ""; position: absolute; left: 50%; top: 24px; width: 4px; height: 30px; margin-left: -2px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.scale-labels { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-500); }
.scale-labels span:nth-child(2) { text-align: center; } .scale-labels span:last-child { text-align: right; }
.res-hero .score-grid { grid-column: 1 / -1; }

/* Google view */
.google-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.serp { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; box-shadow: var(--shadow-sm); min-width: 0; }
.serp-bar { display: flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 999px; border: 1px solid #dfe1e5; box-shadow: 0 1px 6px rgba(32,33,36,.12); margin-bottom: 14px; }
.g-dot { width: 9px; height: 9px; border-radius: 50%; } .g-dot.b { background: #4285f4; } .g-dot.r { background: #ea4335; } .g-dot.y { background: #fbbc05; } .g-dot.g { background: #34a853; }
.serp-q { margin-left: 10px; font-size: 15px; color: #202124; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #f1f0f7; }
.serp-pos { width: 24px; height: 24px; border-radius: 50%; background: #e8f0fe; color: #1a56c4; font-weight: 800; font-size: 12px; display: grid; place-items: center; font-family: var(--font-head); }
.serp-dom { display: block; color: #1a0dab; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.serp-dom.muted { color: #1a0dab; opacity: .75; font-weight: 600; font-size: 14.5px; }
.serp-line { display: block; height: 8px; border-radius: 6px; background: #eceaf4; margin-top: 7px; }
.serp-line.l1 { width: 92%; } .serp-line.l2 { width: 64%; }
.serp-gap { text-align: center; color: var(--ink-500); letter-spacing: 6px; padding: 6px 0; font-weight: 800; }
.serp-you { border-radius: 14px; padding: 14px 16px; border: 2px dashed var(--tc, var(--bad)); background: var(--tb, var(--bad-bg)); }
.serp-you.bad { --tc: var(--bad); --tb: var(--bad-bg); } .serp-you.ok { --tc: var(--ok); --tb: var(--ok-bg); } .serp-you.good { --tc: var(--good); --tb: var(--good-bg); border-style: solid; } .serp-you.na { --tc: var(--muted); --tb: var(--bg-soft); }
.serp-you strong { display: block; font-family: var(--font-head); color: var(--tc); font-size: 16px; overflow-wrap: anywhere; }
.serp-you span { display: block; font-size: 14px; color: var(--ink); margin-top: 3px; }

.bigstats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bstat { border-radius: 16px; padding: 18px; background: var(--tb); border: 1px solid color-mix(in srgb, var(--tc) 22%, transparent); min-width: 0; }
.bstat small { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 600; line-height: 1.3; }
.bstat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); color: var(--tc); line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bstat em { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--tc); margin-top: 4px; }

.trend { margin-top: 24px; border-radius: 18px; padding: 18px 20px 12px; background: var(--bg-soft); }
.trend-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.trend-head h4 { margin: 0; font-family: var(--font-head); font-size: 15px; }
.trend-badge { background: var(--pink-600); color: #fff; font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
.trend-svg { width: 100%; height: 120px; display: block; }
.trend .tl { fill: none; stroke: #6a4cff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trend .ta { fill: rgba(106, 76, 255, .12); }
.trend.falling .tl { stroke: var(--bad); } .trend.falling .ta { fill: rgba(229, 56, 79, .1); }
.trend .tp { fill: #fff; stroke: var(--bad); stroke-width: 3; vector-effect: non-scaling-stroke; }
.trend:not(.falling) .tp { stroke: #6a4cff; }
.trend-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-500); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { border-radius: 18px; padding: 20px; background: var(--tb); border: 1px solid color-mix(in srgb, var(--tc) 22%, transparent); min-width: 0; }
.tcard h4 { font-family: var(--font-head); font-size: 15px; margin: 0 0 14px; }
.tcard p { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.tcard p strong { color: var(--tc); font-family: var(--font-head); font-size: 18px; }
.meter { height: 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--w); background: var(--tbar); border-radius: 999px; }
.meter-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-500); margin-top: 4px; }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { width: 96px; height: 96px; transform: rotate(-90deg); flex-shrink: 0; }
.donut circle { fill: none; stroke-width: 16; }
.donut .d-ok { stroke: #fff; } .donut .d-bad { stroke: var(--tbar); }
.donut-wrap .big { display: block; font-family: var(--font-head); font-size: 38px; font-weight: 800; color: var(--tc); line-height: 1; }
.donut-wrap span { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ai-list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: #fff; border-radius: 10px; padding: 7px 10px; }
.ai-list em { font-style: normal; font-size: 12px; font-weight: 700; }
.ai-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 900; }
.ai-list .no .ai-ico { background: var(--bad-bar); } .ai-list .no em { color: var(--bad); }
.ai-list .yes .ai-ico { background: var(--good-bar); } .ai-list .yes em { color: var(--good); }

/* Speed */
.speedbar { margin-bottom: 20px; }
.sp-row { display: grid; grid-template-columns: 120px 1fr 70px; align-items: center; gap: 14px; margin-bottom: 10px; }
.sp-lbl { font-weight: 700; font-size: 14px; }
.sp-track { height: 22px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.sp-fill { display: block; height: 100%; width: var(--w); background: var(--tbar); border-radius: 999px; }
.sp-val { font-family: var(--font-head); font-size: 18px; color: var(--tc); text-align: right; }
.sp-note { margin: 8px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--tb); font-size: 15px; }
.sp-note strong { color: var(--tc); }

/* Problems -> what we do */
.res-problems .res-block-head h3 { font-size: 24px; }
.problems { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 0; }
.problem { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; background: #fff; margin-bottom: 18px; }
/* Cards in a row share their rows: headline, points and the blue panel line up and match in size */
@supports (grid-template-rows: subgrid) {
  .problem { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .problem > .p-fix { margin-top: 0; align-self: stretch; }
}
.p-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px 6px; }
.p-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--bad-bg); }
.p-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--bad); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-warning .p-ico { background: var(--ok-bg); } .p-warning .p-ico svg { stroke: var(--ok); }
.p-sev { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bad); }
.p-warning .p-sev { color: var(--ok); }
.p-head h4 { margin: 2px 0 0; font-family: var(--font-head); font-size: 18px; line-height: 1.3; }
.p-evidence { margin: 8px 20px 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.p-evidence li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.p-evidence li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad-bar); }
.p-warning .p-evidence li::before { background: var(--ok-bar); }
.p-fix { margin-top: auto; padding: 16px 20px 20px; background: var(--grad-hero); color: #fff; position: relative; overflow: hidden; }
.p-fix::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 26, .35), transparent 70%); pointer-events: none; }
.p-fix-lbl { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-400); position: relative; z-index: 1; }
.p-fix-lbl::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: var(--orange-400); color: #fff; display: grid; place-items: center; font-size: 11px; letter-spacing: 0; box-shadow: 0 6px 14px -6px rgba(255, 106, 26, .9); }
.p-fix p { margin: 8px 0 0; font-size: 16px; color: #fff; font-weight: 500; line-height: 1.55; position: relative; z-index: 1; }
.problems-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.problems-cta span { color: var(--ink-500); font-size: 14px; }

/* Collapsed technical details */
.res-details { padding: 0; }
.res-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 34px; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.res-details summary::-webkit-details-marker { display: none; }
.res-details summary > span:first-child::after { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 10px; border-radius: 50%; background: var(--bg-soft); font-size: 18px; vertical-align: middle; }
.res-details[open] summary > span:first-child::after { content: "−"; }
.sum-counts { display: flex; align-items: center; gap: 6px; font-family: var(--font-body, inherit); font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.sum-counts .dot { margin-left: 8px; }
.res-details .checks, .res-details .two-col { padding: 0 34px 26px; }

@media (max-width: 1000px) {
  .google-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .problems { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .res-hero { grid-template-columns: 1fr; text-align: center; padding: 26px 18px; }
  .hero-score { justify-self: center; }
  .issue-chips { justify-content: center; }
  .bigstats { grid-template-columns: 1fr 1fr; }
  .bstat { padding: 14px; }
  .sp-row { grid-template-columns: 1fr 64px; }
  .sp-lbl { grid-column: 1 / -1; margin-bottom: -6px; }
  .res-details summary { padding: 18px; font-size: 16px; }
  .res-details .checks, .res-details .two-col { padding: 0 18px 20px; }
  .p-head { padding: 16px 16px 4px; } .p-evidence { margin: 8px 16px 12px; } .p-fix { padding: 12px 16px 16px; }
}

/* What this is costing you */
.res-cost { border: 2px solid var(--pink-100); }
.res-cost .res-block-head h3 { font-size: 24px; }
.cost-flow { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1.2fr; align-items: stretch; gap: 10px; }
.cf { border-radius: 16px; padding: 18px; background: var(--bg-soft); min-width: 0; display: flex; flex-direction: column; }
.cf small { font-size: 13px; font-weight: 600; color: var(--ink-600); line-height: 1.35; }
.cf strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); color: var(--ink-900); margin: 8px 0 4px; font-variant-numeric: tabular-nums; line-height: 1.1; overflow-wrap: anywhere; }
.cf .per { font-size: 15px; font-weight: 700; color: var(--ink-500); margin-left: 2px; }
.cf em { font-style: normal; font-size: 13px; color: var(--ink-500); overflow-wrap: anywhere; }
.cf-loss { background: var(--pink-50); border: 1px solid var(--pink-100); }
.cf-loss strong { color: var(--pink-700); }
.cf-loss small { color: var(--pink-700); }
.cf-arrow { align-self: center; justify-self: center; width: 22px; height: 22px; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6c91' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.cost-inputs { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 20px; }
.cost-inputs label { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink-900); }
.ci { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft); border-radius: 12px; padding: 4px 12px; border: 2px solid transparent; }
.ci:focus-within { border-color: var(--teal-400); background: #fff; }
.ci b { color: var(--ink-500); font-weight: 700; }
.ci input { width: 90px; border: 0; background: transparent; font: 600 16px/1.4 var(--font-body); color: var(--ink-900); padding: 6px 2px; outline: none; font-variant-numeric: tabular-nums; }
.cost-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-600); }
.cost-note strong { color: var(--ink-900); }

/* Real competitors in the Google mock-up */
.serp-visits { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.serp-visits i { display: block; height: 8px; width: var(--w); max-width: 60%; border-radius: 6px; background: var(--teal-400); }
.serp-visits b { font-size: 13px; color: var(--teal-700); font-weight: 700; white-space: nowrap; }

@media (max-width: 1000px) {
  .cost-flow { grid-template-columns: 1fr; }
  .cf-arrow { transform: rotate(90deg); }
}
