/* ====================================================================
   SEO Tools hub — /seo-tools/ (CPT archive)
==================================================================== */

.seo-tools-page {
  --t-black:    #0a0a0a;
  --t-text:     #1f2937;
  --t-muted:    #6b7280;
  --t-border:   #e5e7eb;
  --t-bg-soft:  #f6f8fb;
  --t-red:      #F40009;
  --t-blue:     #0A66C2;

  color: var(--t-text);
  background: #fff;
}
.seo-tools-page .container { max-width: 1200px; }

/* ---------- Hero ---------- */
.st-hero {
  position: relative;
  padding: 110px 0 70px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 90% -10%, rgba(10, 102, 194, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(244, 0, 9, 0.22), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #131722 100%);
}
.st-hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.st-h1 {
  margin: 0 0 18px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-size: clamp(36px, 5.6vw, 64px);
  color: #fff;
}
.st-hero-lead {
  margin: 0 auto 12px;
  max-width: 820px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.st-hero-sub {
  margin: 0 auto;
  max-width: 760px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.st-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.st-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.st-hero-meta span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t-red);
}

/* ---------- Generic section helpers ---------- */
.st-section-eyebrow {
  display: block;
  margin: 0 auto 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-blue);
}
.st-section-title {
  margin: 0 auto 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--t-black);
  max-width: 940px;
}
.st-section-sub {
  margin: 0 auto 40px;
  max-width: 800px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--t-muted);
}

/* ---------- Featured tool card ---------- */
.st-featured {
  padding: 70px 0 40px;
  background: var(--t-bg-soft);
}
.st-featured-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
  background: #fff;
  border: 1px solid var(--t-border);
  border-radius: 22px;
  box-shadow: 0 24px 60px -28px rgba(10, 102, 194, 0.25);
  position: relative;
  overflow: hidden;
}
.st-featured-card::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(10, 102, 194, 0.18), transparent 65%);
  pointer-events: none;
}
.st-featured-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--t-red);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.st-featured-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--t-black);
}
.st-featured-desc {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--t-muted);
}
.st-featured-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.st-featured-bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  color: var(--t-text);
}
.st-featured-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--t-blue);
  border-bottom: 2px solid var(--t-blue);
  transform: rotate(-45deg);
}
/* Wizard preview — faux app window showing the calculator's actual UI. */
.st-featured-preview {
  background: #fff;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(10, 102, 194, 0.35);
  font-family: inherit;
}
.st-featured-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f1f5fa 0%, #e6edf6 100%);
  border-bottom: 1px solid #cfe0f5;
}
.st-featured-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c2d2e6;
}
.st-featured-preview-dot:nth-child(1) { background: #ff5f57; }
.st-featured-preview-dot:nth-child(2) { background: #febc2e; }
.st-featured-preview-dot:nth-child(3) { background: #28c840; }
.st-featured-preview-url {
  margin-left: 10px;
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--t-muted);
  letter-spacing: 0.02em;
}
.st-featured-preview-body {
  padding: 18px 20px 16px;
  background: #fff;
}
.st-featured-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.st-featured-preview-meta strong { color: var(--t-blue); font-weight: 800; }
.st-featured-preview-pct { color: var(--t-blue); }

.st-featured-preview-progress {
  height: 4px;
  background: var(--t-bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.st-featured-preview-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--t-blue) 0%, var(--t-red) 100%);
  border-radius: 999px;
  animation: st-pulse 2.4s ease-in-out infinite;
}
@keyframes st-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.65; }
}

.st-featured-preview-q {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--t-black);
  line-height: 1.35;
}
.st-featured-preview-options {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.st-featured-preview-options li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 6px;
  border: 1.5px solid var(--t-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t-text);
  background: #fff;
}
.st-featured-preview-options li.is-selected {
  border-color: var(--t-blue);
  background: rgba(10, 102, 194, 0.05);
  font-weight: 600;
  color: var(--t-black);
}
.st-featured-preview-options .opt-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--t-border);
  background: #fff;
  position: relative;
}
.st-featured-preview-options li.is-selected .opt-dot {
  border-color: var(--t-blue);
  background: var(--t-blue);
}
.st-featured-preview-options li.is-selected .opt-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.st-featured-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--t-border);
  font-size: 11px;
  font-weight: 600;
}
.st-featured-preview-saved {
  color: #16a34a;
  letter-spacing: 0.02em;
}
.st-featured-preview-next {
  color: #fff;
  background: var(--t-blue);
  padding: 6px 12px;
  border-radius: 6px;
}

/* ---------- Tool grid ---------- */
.st-grid-section { padding: 80px 0; }
.st-tools-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.st-tool-card {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid var(--t-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.st-tool-card:hover {
  border-color: var(--t-blue);
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -22px rgba(10, 102, 194, 0.25);
}
.st-tool-link {
  display: block;
  padding: 22px 22px 24px;
  text-decoration: none;
  color: var(--t-text);
  height: 100%;
}
.st-tool-link:hover { color: var(--t-text); }
.st-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.st-tool-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.st-tool-card--live .st-tool-status {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.st-tool-card--soon .st-tool-status {
  background: rgba(244, 0, 9, 0.08);
  color: var(--t-red);
}
.st-tool-cat {
  font-size: 11px;
  color: var(--t-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.st-tool-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--t-black);
  line-height: 1.3;
}
.st-tool-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--t-muted);
}
.st-tool-arrow {
  display: inline-block;
  font-size: 18px;
  color: var(--t-blue);
  transition: transform 200ms ease;
}
.st-tool-card:hover .st-tool-arrow { transform: translateX(4px); }
.st-tool-card--live::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--t-blue) 0%, var(--t-red) 100%);
}

/* ---------- Why choose section ---------- */
.st-why-section {
  padding: 80px 0;
  background: var(--t-bg-soft);
}
.st-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.st-why-card {
  position: relative;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--t-border);
  border-radius: 14px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.st-why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(10, 10, 10, 0.18);
}
.st-why-num {
  display: inline-block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--t-blue) 0%, var(--t-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.st-why-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--t-black);
}
.st-why-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--t-muted);
}

/* ---------- Categories section ---------- */
.st-categories-section { padding: 80px 0; }
.st-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.st-cat-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--t-border);
  border-radius: 14px;
  border-left: 4px solid var(--t-blue);
  transition: border-left-color 200ms ease, transform 200ms ease;
}
.st-cat-card:nth-child(2n) { border-left-color: var(--t-red); }
.st-cat-card:hover { transform: translateY(-2px); }
.st-cat-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--t-black);
}
.st-cat-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--t-muted);
}
.st-cat-card strong { color: var(--t-black); font-weight: 700; }

/* ---------- Our Stack (12 tools we use day-to-day) ---------- */
.st-stack-section {
  padding: 80px 0;
  background: var(--t-bg-soft);
}
.st-stack-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.st-stack-card {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid var(--t-border);
  border-radius: 14px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.st-stack-card:hover {
  border-color: var(--t-blue);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(10, 102, 194, 0.25);
}
.st-stack-head {
  margin-bottom: 10px;
}
.st-stack-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--t-black);
  letter-spacing: -0.01em;
}
.st-stack-cat {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-blue);
}
.st-stack-card p {
  flex: 1;
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--t-muted);
}
.st-stack-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--t-blue);
  text-decoration: none;
  letter-spacing: 0.01em;
  align-self: flex-start;
  padding-top: 10px;
  border-top: 1px dashed var(--t-border);
  width: 100%;
}
.st-stack-link:hover {
  color: var(--t-red);
}
.st-stack-link span { transition: transform 160ms ease; }
.st-stack-link:hover span { transform: translateX(3px); }

.st-stack-footnote {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 18px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--t-border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--t-muted);
}
.st-stack-footnote strong { color: var(--t-black); font-weight: 700; }

/* ---------- FAQ ---------- */
.st-faq-section {
  padding: 80px 0;
  background: #fff;
}
.st-faq-list {
  max-width: 920px;
  margin: 0 auto;
}
.st-faq-item {
  border: 1px solid var(--t-border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.st-faq-item[open] {
  border-color: var(--t-blue);
  box-shadow: 0 14px 30px -22px rgba(10, 102, 194, 0.4);
}
.st-faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--t-black);
}
.st-faq-q::-webkit-details-marker { display: none; }
.st-faq-q-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.st-faq-q-icon::before,
.st-faq-q-icon::after {
  content: "";
  position: absolute;
  background: var(--t-blue);
  border-radius: 2px;
}
.st-faq-q-icon::before { inset: 9px 2px; }
.st-faq-q-icon::after  { inset: 2px 9px; transition: transform 200ms ease; }
.st-faq-item[open] .st-faq-q-icon::after { transform: scaleY(0); }
.st-faq-a {
  padding: 0 22px 20px;
  color: var(--t-muted);
  font-size: 15px;
  line-height: 1.7;
}
.st-faq-a p { margin: 0; }

/* ---------- Final CTA ---------- */
.st-cta-final {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(1100px 520px at 90% -10%, rgba(10, 102, 194, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(244, 0, 9, 0.22), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #131722 100%);
}
.st-cta-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- Buttons ---------- */
.st-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 80ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.st-btn--primary {
  background: var(--t-red);
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(244, 0, 9, 0.55);
}
.st-btn--primary:hover { background: #c40008; color: #fff; }
.st-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.st-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .st-stack-grid    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .st-featured-card { grid-template-columns: 1fr; padding: 28px; }
  .st-tools-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-why-grid      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-cat-grid      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-stack-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .st-hero { padding: 95px 0 56px; }
  .st-grid-section,
  .st-why-section,
  .st-categories-section,
  .st-stack-section,
  .st-faq-section,
  .st-cta-final,
  .st-featured { padding: 56px 0; }
  .st-tools-grid,
  .st-why-grid,
  .st-cat-grid,
  .st-stack-grid { grid-template-columns: 1fr; }
}
