/* Fix My SERP — site styles. No framework, no build step. */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --surface-3: #f1efeb;
  --line: #e6e3dd;
  --line-strong: #d5d1c9;
  --ink: #17161a;
  --ink-2: #413f45;
  --muted: #76737c;
  --faint: #a5a2ab;
  --accent: #2f5bd3;
  --accent-2: #4a7ef0;
  --accent-soft: #eaf0fd;
  --good: #16794f;
  --good-soft: #e3f2ea;
  --warn: #9a6b06;
  --bad: #c0392f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,18,25,.05), 0 8px 28px rgba(20,18,25,.06);
  --shadow-lg: 0 2px 6px rgba(20,18,25,.06), 0 24px 60px rgba(20,18,25,.10);
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131318;
    --surface: #1a1a20;
    --surface-2: #1f1f26;
    --surface-3: #26262e;
    --line: #2d2d36;
    --line-strong: #3b3b46;
    --ink: #edecf0;
    --ink-2: #c6c4cc;
    --muted: #96949e;
    --faint: #6e6c76;
    --accent: #7c9cf5;
    --accent-2: #9db4f8;
    --accent-soft: #1d2540;
    --good: #58c896;
    --good-soft: #16281f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.45), 0 24px 60px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #131318; --surface: #1a1a20; --surface-2: #1f1f26; --surface-3: #26262e;
  --line: #2d2d36; --line-strong: #3b3b46; --ink: #edecf0; --ink-2: #c6c4cc;
  --muted: #96949e; --faint: #6e6c76; --accent: #7c9cf5; --accent-2: #9db4f8;
  --accent-soft: #1d2540; --good: #58c896; --good-soft: #16281f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.65 Inter, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(23px, 3.2vw, 31px); }
h3 { font-size: 19px; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.row { display: flex; align-items: center; gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.tiny { font-size: 13px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 99; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
}
.site-head .row { min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
}
.brand-name { font-size: 16.5px; font-weight: 600; }
.brand-name b { font-weight: 800; }
.site-nav { display: flex; gap: 4px; margin-left: 18px; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 7px 11px; border-radius: 9px;
}
.site-nav a:hover { background: var(--surface-3); color: var(--ink); }
.site-nav a.on { color: var(--ink); background: var(--surface-3); }
.head-cta { margin-left: auto; display: flex; gap: 8px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: .2s; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: 11px; padding: 11px 18px; font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:hover { box-shadow: var(--shadow); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { background: var(--accent-2); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { padding: 8px 13px; font-size: 14px; border-radius: 9px; }
.btn.lg { padding: 14px 24px; font-size: 16.5px; border-radius: 13px; }

/* ---------------------------------------------------------------- layout */
section { padding: 62px 0; }
section.tight { padding: 40px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 5px 11px; border-radius: 99px; margin-bottom: 14px;
}
.lead { font-size: clamp(17px, 2.2vw, 19.5px); color: var(--ink-2); max-width: 62ch; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}

/* ------------------------------------------------------------------- hero */
.hero { padding: 68px 0 42px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 50%; width: 900px; height: 520px;
  transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* mock screenshot */
.shot {
  margin-top: 40px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.shot-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.shot-body { padding: 18px; display: grid; gap: 12px; }
.tile-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--surface-2); }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.tile .v { font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; }
.tile .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.task { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.task .n { width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.task .t { font-weight: 600; font-size: 14.5px; }
.task .s { font-size: 13px; color: var(--muted); }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.chip.on { background: var(--good-soft); color: var(--good); }
.chip.hot { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }

/* ------------------------------------------------------------------ steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps > li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
ol.steps > li::before {
  content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700;
  display: grid; place-items: center;
}
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
ul.ticks li { display: flex; gap: 10px; align-items: flex-start; }
ul.ticks li::before { content: "✓"; color: var(--good); font-weight: 800; flex: none; }

/* ------------------------------------------------------------------- blog */
.post-list { display: grid; gap: 16px; }
.post-item {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .08s;
}
.post-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }
.post-item h3 { margin-bottom: 5px; font-size: 20px; }
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
article.post { max-width: 720px; margin-inline: auto; }
article.post h2 { margin-top: 1.7em; }
article.post h3 { margin-top: 1.5em; font-size: 18.5px; }
article.post ul, article.post ol { padding-left: 1.25em; margin: 0 0 1.1em; }
article.post li { margin-bottom: .45em; }
article.post table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: 15px; }
article.post th, article.post td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
article.post th { font-weight: 650; background: var(--surface-2); }
article.post blockquote {
  margin: 0 0 1.2em; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent);
  color: var(--ink-2); font-size: 17px;
}
article.post code { background: var(--surface-3); padding: 1.5px 6px; border-radius: 5px; font-size: 91%; }
article.post pre { background: var(--surface-3); padding: 14px 16px; border-radius: 12px; overflow: auto; }
article.post pre code { background: none; padding: 0; }
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface-2);
  border-radius: 10px; padding: 15px 18px; margin: 0 0 1.3em;
}
.callout p:last-child { margin-bottom: 0; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 26px; }
.toc h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.1em; font-size: 15px; }

/* -------------------------------------------------------------------- ads */
.ad {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  margin: 30px 0; border: 1px dashed var(--line-strong); border-radius: 12px;
  background: var(--surface-2); overflow: hidden;
}
.ad-tag, .ad-ph { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ad-tag { align-self: flex-start; padding: 6px 10px 0; }
.ad .adsbygoogle { width: 100%; }

/* ------------------------------------------------------------------- misc */
.cta-band {
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff;
  border-radius: 20px; padding: 40px 34px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 58ch; margin-inline: auto; }
.cta-band .btn { background: #fff; color: var(--accent); border-color: transparent; }
.cta-band .btn:hover { background: #f2f5ff; color: var(--accent); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

.site-foot { border-top: 1px solid var(--line); background: var(--surface-2); padding: 48px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.foot-grid a { display: block; color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 3px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-end { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .site-nav, .head-cta { display: none; }
  .burger { display: block; }
  body.nav-open .site-nav {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; gap: 2px;
  }
  body.nav-open .head-cta {
    display: flex; position: absolute; top: 250px; left: 16px; right: 16px;
  }
  body.nav-open .head-cta .btn { flex: 1; }
  section { padding: 44px 0; }
}
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto; } }
