/* RankInject — site styles */
:root {
  --bg: #fafaff;
  --surface: #ffffff;
  --surface-2: #f3f2fb;
  --ink: #15142b;
  --ink-2: #3a3956;
  --muted: #676684;
  --line: #e3e2ef;
  --line-2: #d2d1e3;
  --accent: #5a46f0;
  --accent-2: #7b5cff;
  --accent-ink: #ffffff;
  --accent-soft: #efecff;
  --ok: #157a3c;
  --ok-soft: #e6f6ec;
  --warn: #9a5a00;
  --warn-soft: #fff4e0;
  --err: #c62828;
  --err-soft: #fdecec;
  --code-bg: #12112a;
  --code-ink: #e4e3f5;
  --tk-k: #b9a8ff;
  --tk-s: #8ee3b4;
  --tk-n: #ffcf7a;
  --tk-b: #ff9db4;
  --tk-t: #7fc6ff;
  --serp-bg: #ffffff;
  --serp-title: #1a0dab;
  --serp-ink: #4d5156;
  --serp-url: #202124;
  --star: #f5a623;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(21, 20, 43, .05), 0 10px 30px rgba(21, 20, 43, .07);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0c1c; --surface: #15142b; --surface-2: #1c1b36; --ink: #f0effa; --ink-2: #cfcde6; --muted: #9a98b8;
    --line: #2a2948; --line-2: #3a3960; --accent: #8b78ff; --accent-2: #a594ff; --accent-ink: #0d0c1c; --accent-soft: #24204a;
    --ok: #5bd48a; --ok-soft: #12301f; --warn: #ffbe5c; --warn-soft: #33260d; --err: #ff7b7b; --err-soft: #3a1618;
    --code-bg: #0a0918; --serp-bg: #1f1f23; --serp-title: #99c3ff; --serp-ink: #bdc1c6; --serp-url: #dadce0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0c1c; --surface: #15142b; --surface-2: #1c1b36; --ink: #f0effa; --ink-2: #cfcde6; --muted: #9a98b8;
  --line: #2a2948; --line-2: #3a3960; --accent: #8b78ff; --accent-2: #a594ff; --accent-ink: #0d0c1c; --accent-soft: #24204a;
  --ok: #5bd48a; --ok-soft: #12301f; --warn: #ffbe5c; --warn-soft: #33260d; --err: #ff7b7b; --err-soft: #3a1618;
  --code-bg: #0a0918; --serp-bg: #1f1f23; --serp-title: #99c3ff; --serp-ink: #bdc1c6; --serp-url: #dadce0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--accent); font-weight: inherit; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .menu > summary { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.nav-links > a:hover, .menu > summary:hover, .menu[open] > summary { background: var(--surface-2); color: var(--ink); }
.nav-links > a[aria-current="page"] { color: var(--accent); }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(560px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-panel a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.menu-panel a span { display: block; color: var(--muted); font-weight: 450; font-size: 13px; margin-top: 2px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--accent-soft); }
.nav-cta { margin-left: 6px; }
@media (max-width: 640px) {
  .nav .nav-cta { display: none; }
  .nav-links > a, .menu > summary { padding: 8px 10px; }
  .menu-panel { position: fixed; left: 16px; right: 16px; top: 66px; width: auto; grid-template-columns: 1fr; max-height: calc(100vh - 90px); overflow: auto; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease, box-shadow .12s ease; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.lg { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 6px 8px; font: 550 14px var(--font); color: var(--muted); cursor: pointer; border-radius: 7px; }
.link-btn:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 800; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), #c14bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 640px; margin: 0 0 26px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.badges li { font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 28px; position: relative; }
.badges li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 5px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: translateY(-70%) rotate(-45deg); }
.home-hero { display: grid; gap: 40px; align-items: center; padding-block: 64px 56px; }
.home-hero > * { min-width: 0; }
@media (min-width: 980px) { .home-hero { grid-template-columns: 1.05fr .95fr; padding-block: 88px 72px; } }
.hero-tool { padding: 30px 0 26px; }
.hero-tool h1 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 12px; }
.hero-tool .lead { margin-bottom: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* code window on home page */
.code-win { background: var(--code-bg); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .05) inset; overflow: hidden; min-width: 0; }
.code-win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #8c8ab0; font: 12.5px var(--mono); }
.code-win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3960; }
.code-win-bar span { margin-left: 8px; }
.code-win pre { margin: 0; padding: 18px 20px 22px; font-size: 13.5px; line-height: 1.65; color: var(--code-ink); overflow: auto; }

/* ---------- tool layout ---------- */
.tool { display: grid; gap: 22px; align-items: start; padding-bottom: 56px; }
@media (min-width: 1000px) { .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tool-form { padding: 6px 22px 22px; }
.tool-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tool-bar h2 { font-size: 15px; margin: 0; }
.tool-bar div { display: flex; gap: 2px; }
.tool-out { padding: 0; overflow: hidden; }
@media (min-width: 1000px) { .tool-out { position: sticky; top: 78px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; } }
fieldset { border: 0; margin: 0; padding: 18px 0 4px; min-width: 0; }
fieldset + fieldset { border-top: 1px dashed var(--line); }
legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
legend + * { clear: both; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid > * { grid-column: span 2; min-width: 0; }
.grid > .half { grid-column: span 1; }
@media (max-width: 520px) { .grid > .half { grid-column: span 2; } }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.req { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-left: 4px; }
input, select, textarea { width: 100%; font: 15px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; transition: border-color .12s, box-shadow .12s, background .12s; }
textarea { resize: vertical; min-height: 78px; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--surface); }
::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.help { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; line-height: 1.45; }
.section-help { margin: -4px 0 12px; }
.list { display: grid; gap: 10px; }
.row-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 14px; background: var(--surface-2); }
.row-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.row-tools { display: flex; gap: 2px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.icon-btn:hover:not(:disabled) { background: var(--surface); color: var(--ink); }
.icon-btn.danger:hover { color: var(--err); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.add-btn { justify-self: start; min-height: 38px; font-size: 14px; border-style: dashed; }

.tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.tabs button { border: 0; background: none; font: 600 14px var(--font); color: var(--muted); padding: 10px 12px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.panel { min-height: 0; overflow: auto; flex: 1 1 auto; }
.panel[hidden] { display: none; }
.code { margin: 0; padding: 18px 20px; background: var(--code-bg); color: var(--code-ink); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; min-height: 280px; }
@media (min-width: 1000px) { .code { min-height: 100%; } }
.tk-k { color: var(--tk-k); } .tk-s { color: var(--tk-s); } .tk-n { color: var(--tk-n); } .tk-b { color: var(--tk-b); } .tk-t { color: var(--tk-t); }
.out-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.out-actions .check { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.out-actions .check input { width: 17px; height: 17px; accent-color: var(--accent); }
.checks { padding: 0 16px 14px; background: var(--surface); font-size: 13.5px; max-height: 210px; overflow: auto; flex: none; }
.check-head { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.check-head.ok { background: var(--ok-soft); color: var(--ok); }
.check-head.err { background: var(--err-soft); color: var(--err); }
.checks ul, .v-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.checks li, .v-card li { position: relative; padding: 2px 0 2px 22px; color: var(--ink-2); line-height: 1.45; }
.checks li::before, .v-card li::before { position: absolute; left: 2px; top: 2px; font-weight: 800; font-size: 13px; }
li.err::before { content: "✕"; color: var(--err); }
li.warn::before { content: "!"; color: var(--warn); left: 6px; }
li.note::before { content: "i"; color: var(--accent); left: 6px; font-family: Georgia, serif; font-style: italic; }
.fine { font-size: 12.5px; color: var(--muted); margin: 0; padding: 0 16px 14px; background: var(--surface); }
.panel .fine { padding: 0 18px 16px; background: none; }

/* ---------- Google preview ---------- */
.preview-wrap { padding: 18px; background: var(--surface-2); min-height: 280px; }
.serp { background: var(--serp-bg); border-radius: 12px; padding: 16px 18px; font-family: Arial, Helvetica, sans-serif; color: var(--serp-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); max-width: 652px; }
.serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #e8eaed; color: #3c4043; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.serp-name { font-size: 14px; color: var(--serp-url); line-height: 1.3; }
.serp-url { font-size: 12px; color: var(--serp-ink); line-height: 1.3; word-break: break-all; }
.serp-main { display: flex; gap: 14px; }
.serp-text { flex: 1; min-width: 0; }
.serp-title { color: var(--serp-title); font-size: 20px; line-height: 1.3; margin: 2px 0 3px; }
.serp-rich { font-size: 14px; margin-bottom: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.serp-rich .dot { color: #70757a; }
.r-val { color: var(--serp-ink); }
.stars { position: relative; display: inline-block; color: #dadce0; letter-spacing: 1px; font-size: 14px; line-height: 1; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--r); overflow: hidden; color: var(--star); }
.serp-desc { font-size: 14px; line-height: 1.58; }
.serp-date { color: #70757a; }
.serp-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; flex: none; background: #f1f3f4; }
.serp-thumb:not(.loaded) { display: none; }
.serp-rows { margin: 10px 0 0; display: grid; gap: 4px; font-size: 14px; }
.serp-rows div { display: flex; gap: 6px; }
.serp-rows dt { font-weight: 700; color: var(--serp-url); }
.serp-rows dt::after { content: ":"; }
.serp-rows dd { margin: 0; }
.serp-faq { margin-top: 10px; border-top: 1px solid #dadce0; }
.serp-faq div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #dadce0; font-size: 14px; color: var(--serp-url); }
.serp-events { margin-top: 10px; display: grid; gap: 8px; }
.ev { display: flex; gap: 12px; align-items: center; }
.ev-date { width: 46px; text-align: center; border: 1px solid #dadce0; border-radius: 8px; padding: 4px 0; line-height: 1.15; }
.ev-date span { display: block; font-size: 11px; text-transform: uppercase; color: #d93025; font-weight: 700; }
.ev-date b { font-size: 18px; color: var(--serp-url); }
.ev-name { color: var(--serp-title); font-size: 14px; }
.ev-meta { font-size: 13px; }

/* ---------- content ---------- */
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
.section-lead { color: var(--ink-2); max-width: 640px; margin: 0 0 30px; font-size: 17px; }
.tools-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.tool-card code { font-size: 12.5px; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; align-self: flex-start; }
.tool-card h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.01em; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.tool-card .go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 650; color: var(--accent); }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.split { display: grid; gap: 36px; }
.split > * { min-width: 0; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.prose { max-width: 720px; font-size: 16.5px; }
.prose h2 { font-size: 27px; letter-spacing: -.02em; line-height: 1.2; margin: 38px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.prose pre { background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; border-radius: 12px; overflow: auto; font-size: 13.5px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose td:first-child { white-space: nowrap; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); padding: 14px 16px; border-radius: 10px; margin: 18px 0; }
.callout p { margin: 0; }
.side-box { position: sticky; top: 84px; padding: 20px; }
.side-box h2 { font-size: 15px; margin: 0 0 10px; }
.side-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side-box a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 550; }
.side-box a:hover { background: var(--surface-2); color: var(--ink); }
.side-box a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq-list summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 650; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details > div { padding: 0 0 16px; color: var(--ink-2); }
.faq-list details > div p { margin: 0 0 8px; }
.cta-band { margin: 0 0 72px; padding: 40px 28px; border-radius: 20px; background: linear-gradient(120deg, var(--accent), #9b4bff); color: #fff; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: #2a1d8f; }
.cta-band .btn:hover { background: #f1eeff; }

/* ---------- validator ---------- */
.v-layout { display: grid; gap: 22px; padding-bottom: 56px; align-items: start; }
@media (min-width: 1000px) { .v-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.v-input { padding: 0; overflow: hidden; }
.v-input textarea { border: 0; border-radius: 0; min-height: 420px; font: 13.5px/1.6 var(--mono); background: var(--code-bg); color: var(--code-ink); padding: 18px 20px; resize: vertical; }
.v-input textarea:focus { box-shadow: none; }
.v-input textarea::placeholder { color: #6f6d92; }
.v-results { display: grid; gap: 12px; }
.v-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.v-sum span { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 13px; font-size: 14px; }
.c-err b { color: var(--err); } .c-ok b { color: var(--ok); } .c-warn b { color: var(--warn); }
.v-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.v-title { font-weight: 700; margin-bottom: 8px; }
.v-title code { font-size: 14px; }
.empty { padding: 26px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 30px; color: var(--muted); font-size: 14.5px; background: var(--surface); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; }

/* ---------- toast / misc ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-size: 14.5px; font-weight: 550; box-shadow: var(--shadow); transition: opacity .2s ease, transform .2s ease; pointer-events: none; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { margin: 16px 0; padding: 14px 16px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.page-404 { text-align: center; padding-block: 110px 120px; }
.page-404 h1 { font-size: clamp(40px, 7vw, 72px); margin: 0 0 8px; letter-spacing: -.04em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
