/* seotools.css: tool-page components for seotools.renderit.now.
   Loads after renderit.now/styles.css and uses its variables (--ink, --muted, --gold, --body-bg …),
   so light/dark mode and the menu match the main site. Every class here starts with st- to stay clear of
   the main site's classes. */
:root {
  --st-card: #ffffff;
  --st-soft: rgba(0, 38, 66, 0.04);
  --st-line: rgba(0, 38, 66, 0.12);
  --st-line-strong: rgba(0, 38, 66, 0.28);
  --st-text2: rgba(2, 4, 15, 0.72);
  --st-good: #15803d; --st-good-bg: #e7f6ec;
  --st-warn: #a16207; --st-warn-bg: #fdf4dc;
  --st-bad: #b91c1c;  --st-bad-bg: #fde8e8;
  --st-link: #185fa5;
  --st-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
[data-theme="dark"] {
  --st-card: #0d1117;
  --st-soft: rgba(255, 255, 255, 0.04);
  --st-line: rgba(229, 149, 0, 0.15);
  --st-line-strong: rgba(240, 236, 232, 0.3);
  --st-text2: rgba(240, 236, 232, 0.72);
  --st-good: #4ade80; --st-good-bg: rgba(74, 222, 128, 0.1);
  --st-warn: #fbbf24; --st-warn-bg: rgba(251, 191, 36, 0.1);
  --st-bad: #f87171;  --st-bad-bg: rgba(248, 113, 113, 0.1);
  --st-link: #7cb4ff;
}

/* layout: the menu is fixed and 72px tall */
.st-page { padding-top: 72px; min-height: 70vh; }
.st-wrap { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .st-wrap { padding: 0 16px; } }

/* free-tools bar under the menu */
.st-toolbar { position: fixed; top: 72px; left: 0; right: 0; z-index: 90; background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border); backdrop-filter: blur(12px); }
.st-toolbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: flex; gap: 6px; align-items: center;
  height: 44px; overflow-x: auto; scrollbar-width: none; }
.st-toolbar-inner::-webkit-scrollbar { display: none; }
.st-toolbar a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px;
  border-radius: 7px; white-space: nowrap; transition: color .15s, background .15s; }
.st-toolbar a:hover { color: var(--ink); background: var(--st-soft); }
.st-toolbar a.active { color: var(--ink); background: var(--gold-lt); }
.st-toolbar a.st-toolbar-home { color: var(--gold); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 800; padding-left: 0; margin-right: 6px; }
.st-toolbar a.st-toolbar-home:hover { background: none; }
.st-has-toolbar .st-page { padding-top: 116px; }
@media (max-width: 768px) { .st-toolbar-inner { padding: 0 16px; } }

/* headings */
.st-hero { padding: 48px 0 28px; }
.st-hero.center { text-align: center; }
.st-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.st-h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; color: var(--ink); }
.st-h1 em { font-style: normal; color: var(--gold); }
.st-sub { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 640px; margin-top: 14px; }
.st-hero.center .st-sub { margin-left: auto; margin-right: auto; }
.st-h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; }

/* cards */
.st-card { background: var(--st-card); border: 1px solid var(--st-line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.st-card + .st-card { margin-top: 16px; }
.st-grid-3 > .st-card, .st-grid-2 > .st-card { margin-top: 0; }
.st-card-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.st-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.st-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .st-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .st-grid-3 { grid-template-columns: 1fr; } }

/* forms */
.st-field { margin-bottom: 16px; }
.st-field label, .st-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.st-lbl .opt, .st-field label .opt { color: var(--muted); font-weight: 500; }
.st-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--st-line); border-radius: 9px; font: inherit; font-size: 15px;
  background: var(--st-card); color: var(--ink); outline: none; transition: border-color .15s; }
.st-input:focus { border-color: var(--gold); }
textarea.st-input { resize: vertical; min-height: 84px; line-height: 1.45; }
select.st-input { cursor: pointer; }
.st-hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .st-row { grid-template-columns: 1fr; } }
.st-inline { display: flex; gap: 10px; }
.st-inline .st-input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .st-inline { flex-direction: column; } }

/* buttons (match .btn-primary / .btn-nav-cta) */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: #02040F;
  font-family: var(--font); font-size: 15px; font-weight: 700; padding: 13px 24px; border-radius: 8px; border: none;
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, opacity .15s; white-space: nowrap; }
.st-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(229, 149, 0, .35); }
.st-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.st-btn.block { width: 100%; }
.st-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--st-line-strong); }
.st-btn.ghost:hover { box-shadow: none; background: var(--st-soft); }

/* segmented toggle */
.st-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--st-line); border-radius: 9px; background: var(--st-soft); }
.st-seg button { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: none;
  padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.st-seg button.active { background: var(--st-card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* messages */
.st-msg { padding: 12px 14px; border-radius: 9px; font-size: 14px; line-height: 1.5; margin-top: 14px; }
.st-msg.bad { background: var(--st-bad-bg); color: var(--st-bad); }
.st-msg.warn { background: var(--st-warn-bg); color: var(--st-warn); }
.st-msg.good { background: var(--st-good-bg); color: var(--st-good); }
.st-fine { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.st-spinner { width: 26px; height: 26px; border: 3px solid var(--st-line); border-top-color: var(--gold); border-radius: 50%;
  animation: st-spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-loading { text-align: center; padding: 22px 0 4px; color: var(--muted); font-size: 14px; }

/* issue list */
.st-issues { list-style: none; display: grid; gap: 8px; }
.st-issues li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--st-text2); }
.st-issues li::before { font-weight: 800; text-align: center; }
.st-issues li.bad::before { content: "\2715"; color: var(--st-bad); }
.st-issues li.warn::before { content: "!"; color: var(--st-warn); }
.st-issues li.good::before { content: "\2713"; color: var(--st-good); }

/* pills */
.st-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
.st-pill.good { background: var(--st-good-bg); color: var(--st-good); }
.st-pill.warn { background: var(--st-warn-bg); color: var(--st-warn); }
.st-pill.bad { background: var(--st-bad-bg); color: var(--st-bad); }

/* numbered explainer cards and FAQ */
.st-step .n { font-family: var(--st-mono); font-size: 12px; color: var(--gold); font-weight: 600; }
.st-step h3 { font-size: 15px; font-weight: 700; margin: 6px 0; color: var(--ink); }
.st-step p { font-size: 13.5px; color: var(--st-text2); line-height: 1.55; }
.st-faq { padding: 36px 0 64px; }
.st-faq h3 { font-size: 16px; font-weight: 700; margin: 22px 0 4px; color: var(--ink); }
.st-faq p { color: var(--st-text2); font-size: 14.5px; line-height: 1.6; max-width: 760px; }
.st-section { padding: 28px 0; }

/* CTA band */
.st-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--deep-space); color: #fff; border-radius: 16px; padding: 26px 28px; }
.st-cta h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.st-cta p { color: rgba(255, 255, 255, .7); font-size: 14px; margin-top: 4px; max-width: 560px; }

/* "About these results" disclaimer box, used by every tool */
.st-about { margin-top: 16px; border: 1px solid var(--st-line); background: var(--st-soft); border-radius: 12px; padding: 16px 18px; }
.st-about h2 { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--ink); margin-bottom: 8px; }
.st-about ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.st-about li, .st-about p { font-size: 13px; color: var(--st-text2); line-height: 1.55; }
.st-about p { margin-top: 8px; }

.st-hidden { display: none !important; }
