/*
 * Service — SEO/AEO (Archetype B: analytical, data-driven).
 * Loaded only on the dedicated SEO service page template.
 */

/* ---------- Hero ---------- */
.mwp-seo-hero {
  padding-block: var(--sp-12) var(--sp-16);
  background: linear-gradient(180deg, var(--primary-soft), transparent);
}
.mwp-seo-hero__grid {
  display: grid; gap: var(--sp-12); align-items: center;
  margin-block-start: var(--sp-6);
}
@media (min-width: 900px) {
  .mwp-seo-hero__grid { grid-template-columns: 1.1fr .9fr; }
}
.mwp-seo-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--fs-sm);
  margin-block-end: var(--sp-4);
}
.mwp-seo-hero__content h1 { margin-block-end: var(--sp-3); }
.mwp-seo-hero__sub { color: var(--text-secondary); font-size: 1.15rem; max-width: 56ch; }
.mwp-seo-hero__cta { margin-block-start: var(--sp-6); }
.mwp-seo-hero__trust {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: var(--fs-sm);
}
.mwp-seo-hero__trust svg { color: var(--primary); }

/* ---------- Scorecard (illustrative sample report) ---------- */
.mwp-seo-scorecard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--sp-6);
}
.mwp-seo-scorecard__head {
  font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 700;
  margin-block-end: var(--sp-5); padding-block-end: var(--sp-3);
  border-block-end: 1px solid var(--border);
}
/* Overall score ring — the focal number, echoing the same donut-score
 * language a real audit tool uses (conic-gradient, no SVG needed). */
.mwp-seo-scorecard__overall {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-block-end: var(--sp-5); margin-block-end: var(--sp-5);
  border-block-end: 1px solid var(--border);
}
.mwp-seo-ring {
  --pct: 50;
  width: 76px; height: 76px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--primary) calc(var(--pct) * 1%), var(--surface-sunken) 0);
  display: grid; place-items: center; position: relative;
}
.mwp-seo-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.mwp-seo-ring__value { position: relative; z-index: 1; font-size: 1.35rem; font-weight: 800; color: var(--text-primary); }
.mwp-seo-scorecard__overall-label { font-weight: 700; color: var(--text-secondary); font-size: var(--fs-sm); }

.mwp-seo-scorecard__breakdown { display: grid; gap: var(--sp-3); }
.mwp-seo-scorecard__row {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: var(--sp-3); row-gap: 6px;
}
.mwp-seo-scorecard__label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-primary); }
.mwp-seo-scorecard__bar {
  grid-column: 1 / -1;
  display: block; height: 5px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); overflow: hidden;
}
.mwp-seo-scorecard__bar span {
  display: block; height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.mwp-seo-scorecard__value { font-weight: 800; color: var(--primary); font-size: var(--fs-sm); }

/* ---------- Signature section: real SERP + AEO answer previews ---------- */
.mwp-seo-previews { display: grid; gap: var(--sp-6); grid-template-columns: 1fr 1fr; margin-block-end: var(--sp-6); }
@media (max-width: 780px) { .mwp-seo-previews { grid-template-columns: 1fr; } }

/* Google-result mockup — deliberately mimics real SERP typography/colour
 * conventions (blue title, green breadcrumb URL, grey description) so it
 * reads instantly as "this is what a search result looks like". */
.mwp-serp {
  padding: var(--sp-6); border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  font-family: arial, sans-serif; /* Matches real SERP rendering, not the site font. */
}
.mwp-serp__tag, .mwp-aeo__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 700;
  color: var(--text-secondary); margin-block-end: var(--sp-4);
}
.mwp-serp__head { display: flex; align-items: center; gap: 8px; margin-block-end: 6px; }
.mwp-serp__favicon {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.mwp-serp__url { font-size: .82rem; color: #4d5156; }
:root[data-theme="dark"] .mwp-serp__url { color: #9aa0a6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mwp-serp__url { color: #9aa0a6; } }
.mwp-serp__title { font-size: 1.15rem; font-weight: 400; color: #1a0dab; margin-block-end: 6px; line-height: 1.4; }
:root[data-theme="dark"] .mwp-serp__title { color: #8ab4f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mwp-serp__title { color: #8ab4f8; } }
.mwp-serp__desc { font-size: .89rem; color: #4d5156; line-height: 1.58; }
:root[data-theme="dark"] .mwp-serp__desc { color: #bdc1c6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mwp-serp__desc { color: #bdc1c6; } }

/* AI answer-box mockup — visually distinct from the SERP card (soft-filled,
 * no favicon/URL chrome) so the two previews read as different surfaces,
 * not the same card twice. */
.mwp-aeo {
  padding: var(--sp-6); border-radius: var(--radius-md);
  background: var(--primary-soft); border: 1px solid var(--border);
}
.mwp-aeo__tag { color: var(--primary); }
.mwp-aeo__answer { color: var(--text-primary); font-weight: 600; line-height: 1.85; margin-block-end: var(--sp-4); }
.mwp-aeo__source {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); color: var(--text-secondary);
  padding-block-start: var(--sp-3); border-block-start: 1px solid var(--border);
  width: 100%;
}

/* Schema/JSON-LD code preview — a code-editor-styled panel; ties directly
 * to the AEO structured-data claim instead of an abstract icon card. */
.mwp-seo-schema {
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md);
}
.mwp-seo-schema__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; background: var(--mwp-ink);
}
.mwp-seo-schema__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mwp-seo-schema__bar b { margin-inline-start: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.7); }
.mwp-seo-schema__code {
  margin: 0; padding: var(--sp-5); background: #0d1117; color: #8b949e;
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.7;
  overflow-x: auto; text-align: start;
}
