/* SERP Preview — vanilla CSS. Light, fast, mobile-first. No frameworks. */
:root {
  --ink: #1f1f1f;
  --muted: #5f6368;
  --line: #e2e5ea;
  --bg: #ffffff;
  --wash: #f6f8fb;
  --blue: #1a0dab;
  --url-green: #006621;
  --desc-gray: #4d5156;
  --pass: #188038;
  --warn: #b06000;
  --fail: #c5221f;
  --accent: #0b57d0;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); padding: 14px 0; }
.brand { font-weight: bold; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* hero */
.hero { padding: 34px 0 10px; }
.hero h1 { font-size: clamp(26px, 4.5vw, 38px); line-height: 1.2; margin: 0 0 10px; }
.hero p.lede { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0; }

/* tool */
.tool { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 26px 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: bold; margin-bottom: 6px; font-size: 14px; }
.field input[type="text"], .field textarea {
  width: 100%; padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid #c9ced6; border-radius: 6px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 90px; resize: vertical; font-family: ui-monospace, monospace; font-size: 13px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
button {
  font: inherit; cursor: pointer; border-radius: 6px; padding: 9px 16px;
  border: 1px solid #c9ced6; background: #fff; color: var(--ink);
}
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: bold; }
button:hover { filter: brightness(0.96); }

/* previews */
.previews { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 22px 0; }
@media (min-width: 760px) { .previews { grid-template-columns: 1.4fr 1fr; } }
.preview-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.preview-card h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; }
.serp { font-family: Arial, sans-serif; }
.serp .s-url { color: var(--url-green); font-size: 14px; margin-bottom: 2px; word-break: break-all; }
.serp .s-title { color: var(--blue); font-size: 20px; line-height: 1.3; margin: 0 0 3px; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 600px; }
.serp .s-desc { color: var(--desc-gray); font-size: 14px; line-height: 1.58; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.serp .placeholder { color: #9aa0a6; }
.mobile-frame { border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px; background: #fff; max-width: 380px; }
.mobile-frame .s-title { font-size: 20px; max-width: 100%; }

/* checks */
.checks-section { margin: 10px 0 30px; }
.summary { display: inline-block; font-size: 14px; font-weight: bold; padding: 6px 12px; border-radius: 20px; margin-bottom: 12px; }
.s-pass { background: #e6f4ea; color: var(--pass); }
.s-warn { background: #fef7e0; color: var(--warn); }
.s-fail { background: #fce8e6; color: var(--fail); }
ul.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.check .dot { font-size: 18px; line-height: 1.4; }
.check-pass .dot { color: var(--pass); }
.check-warn .dot { color: var(--warn); }
.check-fail .dot { color: var(--fail); }
.check-neutral .dot { color: #9aa0a6; }
.check strong { font-size: 15px; }
.check p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* content sections */
.section { padding: 26px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 24px; margin: 0 0 14px; }
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: bold; margin-bottom: 8px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

/* affiliate cards */
.aff-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .aff-cards { grid-template-columns: 1fr 1fr; } }
.aff-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.aff-card h3 { margin: 0 0 8px; font-size: 18px; }
.aff-card p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.aff-card a.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 6px; font-weight: bold; font-size: 15px; }
.disclosure { font-size: 13px; color: var(--muted); background: var(--wash); border: 1px dashed #c9ced6; border-radius: 8px; padding: 12px 14px; margin-top: 16px; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: #fff; }
.faq summary { padding: 14px 16px; cursor: pointer; font-weight: bold; font-size: 16px; }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--muted); font-size: 15px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 40px; margin-top: 10px; }
.site-footer p { font-size: 13px; color: var(--muted); margin: 6px 0; }
