/* Shared styles for SEO landing pages + free-tool pages */
body { background: #f8fafc; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #1e293b; }

.lp-hero {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(165,180,252,.25) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(124,58,237,.25) 0%, transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
  color: #fff;
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.lp-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px;
  background: linear-gradient(180deg, transparent 0%, #f8fafc 100%);
  pointer-events: none;
}
.lp-hero .container { max-width: 940px; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(165,180,252,.12);
  border: 1px solid rgba(165,180,252,.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.lp-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.25);
  animation: lp-pulse 2s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .55; }
}
.lp-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0 0 18px;
}
.lp-hero h1 .accent { color: #a5b4fc; }
.lp-hero .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255,255,255,.84);
  max-width: 640px;
  margin: 0 0 28px;
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.lp-btn-primary { background: #fff; color: #3730a3; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(0,0,0,.4); }
.lp-btn-ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.22);
}
.lp-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

.lp-trust {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 28px; font-size: .85rem; color: rgba(255,255,255,.7);
}
.lp-trust span { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust svg { color: #6ee7b7; flex-shrink: 0; }

/* Body */
.lp-body { max-width: 940px; margin: -48px auto 0; padding: 0 24px 80px; position: relative; z-index: 2; }
.lp-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15,23,42,.12);
  border: 1px solid #f1f5f9;
  padding: 44px 48px;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .lp-card { padding: 30px 22px; }
  .lp-hero { padding: 56px 0 78px; }
}
.lp-card h2 {
  font-size: 1.6rem; font-weight: 800; color: #0f172a;
  letter-spacing: -.02em; margin: 0 0 14px;
}
.lp-card h3 {
  font-size: 1.05rem; font-weight: 700; color: #1e293b;
  margin: 22px 0 8px;
}
.lp-card p, .lp-card li {
  font-size: 1rem; line-height: 1.72; color: #475569; margin: 0 0 14px;
}
.lp-card ul, .lp-card ol { padding-left: 22px; }
.lp-card li { margin-bottom: 6px; }
.lp-card strong { color: #1e293b; font-weight: 700; }
.lp-card a { color: #4f46e5; text-decoration: underline; text-decoration-color: rgba(79,70,229,.35); text-underline-offset: 3px; }
.lp-card a:hover { color: #3730a3; text-decoration-color: #4f46e5; }

.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.lp-feat {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 22px 22px 20px;
}
.lp-feat .ic {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: #eef2ff; color: #4f46e5;
  border-radius: 10px; margin-bottom: 12px;
}
.lp-feat h3 { margin: 0 0 6px; font-size: .98rem; }
.lp-feat p  { margin: 0; font-size: .87rem; line-height: 1.6; color: #64748b; }

/* Step list */
.lp-steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0 0; }
.lp-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 60px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: .94rem;
  color: #334155;
  line-height: 1.6;
}
.lp-steps li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
  box-shadow: 0 4px 10px -2px rgba(79,70,229,.45);
}

/* Comparison table */
.lp-compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin-top: 18px;
  font-size: .9rem;
}
.lp-compare th, .lp-compare td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.lp-compare thead th {
  background: #f8fafc;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #475569;
}
.lp-compare thead th:first-child { border-top-left-radius: 10px; }
.lp-compare thead th:last-child  { border-top-right-radius: 10px; }
.lp-compare td:first-child { font-weight: 700; color: #1e293b; }
.lp-compare .yes { color: #059669; font-weight: 700; }
.lp-compare .no  { color: #dc2626; font-weight: 700; }

/* FAQ */
.lp-faq details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: border-color .15s;
}
.lp-faq details[open] { border-color: #c7d2fe; }
.lp-faq summary {
  cursor: pointer; font-weight: 700; color: #0f172a;
  list-style: none; outline: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .98rem;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 300; color: #6366f1;
  transition: transform .2s;
}
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p {
  margin: 12px 0 4px; font-size: .92rem; color: #475569; line-height: 1.7;
}

/* Final CTA */
.lp-finalcta {
  text-align: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
  border-radius: 16px;
  color: #fff;
  padding: 48px 32px;
  box-shadow: 0 20px 40px -10px rgba(67,56,202,.4);
}
.lp-finalcta h2 { color: #fff; font-size: 1.7rem; margin: 0 0 10px; }
.lp-finalcta p { color: rgba(255,255,255,.82); margin: 0 0 22px; font-size: 1rem; }

/* Related / inter-link strip */
.lp-related {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-top: 18px;
}
.lp-related a {
  display: block;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 11px; padding: 14px 16px;
  text-decoration: none; color: #1e293b;
  font-weight: 700; font-size: .92rem;
  transition: background .15s, border-color .15s, transform .15s;
}
.lp-related a small {
  display: block; color: #64748b; font-weight: 400;
  font-size: .8rem; margin-top: 4px;
}
.lp-related a:hover {
  background: #eef2ff; border-color: #c7d2fe;
  transform: translateY(-1px);
  text-decoration: none; color: #3730a3;
}

/* Tool-specific form styles */
.lp-tool {
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15,23,42,.12);
  border: 1px solid #f1f5f9;
  padding: 30px 32px 32px;
  margin-bottom: 24px;
}
.lp-tool form { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.lp-tool .input-wrap { flex: 1 1 280px; display: flex; flex-direction: column; gap: 5px; }
.lp-tool label { font-size: .78rem; font-weight: 700; color: #475569; }
.lp-tool input[type="text"], .lp-tool input[type="url"], .lp-tool select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: .98rem; font-family: inherit; color: #0f172a;
  background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lp-tool input:focus, .lp-tool select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,.15);
}
.lp-tool button[type="submit"] {
  align-self: end;
  padding: 12px 26px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff; border: 0; border-radius: 10px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.lp-tool button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -4px rgba(79,70,229,.45); }
.lp-tool button[type="submit"]:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }

.tool-result {
  margin-top: 24px;
  display: none;
}
.tool-result.show { display: block; }
.tool-loading {
  display: none;
  text-align: center; padding: 24px;
  color: #6366f1; font-weight: 600;
}
.tool-loading.show { display: block; }
.tool-loading .spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2.5px solid #c7d2fe; border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: -5px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tool-error {
  display: none;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
  color: #991b1b; padding: 12px 16px; font-size: .9rem;
  margin-top: 16px;
}
.tool-error.show { display: block; }

.tool-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  overflow: hidden; font-size: .88rem;
}
.tool-table th, .tool-table td {
  padding: 11px 14px; border-bottom: 1px solid #f1f5f9; text-align: left;
}
.tool-table thead th {
  background: #f8fafc; font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: #475569;
}
.tool-table tr:last-child td { border-bottom: 0; }
.tool-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; color: #334155; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .73rem; font-weight: 700; }
.badge-ok    { background: #dcfce7; color: #166534; }
.badge-warn  { background: #fef3c7; color: #92400e; }
.badge-fail  { background: #fee2e2; color: #991b1b; }
.badge-info  { background: #e0e7ff; color: #3730a3; }

/* Tool funnel banner */
.tool-funnel {
  margin-top: 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 20px 24px;
}
.tool-funnel .tf-text { flex: 1 1 260px; }
.tool-funnel h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; color: #312e81; }
.tool-funnel p  { margin: 0; font-size: .9rem; color: #475569; line-height: 1.55; }
.tool-funnel a  {
  display: inline-block; padding: 10px 20px;
  background: #4f46e5; color: #fff; border-radius: 9px;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.tool-funnel a:hover { background: #3730a3; transform: translateY(-1px); }
