/**
 * SEOLivly Wave 7
 * One stylesheet, no framework. Dark by default, readable on a phone.
 */
:root {
  --bg: #0b0d10;
  --surface: #141620;
  --surface-2: #1a1d2b;
  --surface-3: #222638;
  --text: #ffffff;
  --text-body: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.46);
  --primary: #2bb5a8;
  --primary-ink: #05201d;
  --primary-dim: rgba(43, 181, 168, 0.1);
  --primary-border: rgba(43, 181, 168, 0.28);
  --secondary: #7c5ce0;
  --secondary-dim: rgba(124, 92, 224, 0.12);
  --gold: #ffd638;
  --green: #22c55e;
  --red: #f87171;
  --orange: #fbbf24;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --font-h: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(43, 181, 168, 0.12), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(124, 92, 224, 0.1), transparent 55%),
    var(--bg);
  color: var(--text-body);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(43, 181, 168, 0.3); color: #fff; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: #7ee8dd; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin: 0 0 0.45em; }
strong { color: var(--text); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: var(--surface-2); border: 1px solid var(--border-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
pre { background: var(--surface-2); border: 1px solid var(--border); padding: 16px; border-radius: var(--r); overflow-x: auto; font-size: 13px; }
blockquote {
  margin: 1.5rem 0; padding: 14px 20px; border-left: 3px solid var(--primary);
  background: var(--primary-dim); border-radius: 0 var(--r) var(--r) 0; color: var(--text);
}
h1, h2, h3, h4 {
  font-family: var(--font-h); color: var(--text); line-height: 1.18;
  margin: 0 0 0.6em; letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 700; margin-top: 2rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6rem; }
h4 { font-size: 1rem; font-weight: 700; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.86);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
}
.head-in { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 160px; height: 61px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav > a {
  color: var(--text-body); font-family: var(--font-h); font-size: 14px; font-weight: 600;
  padding: 9px 13px; border-radius: var(--r-pill);
}
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav .nav-cta {
  background: var(--primary); color: var(--primary-ink); margin-left: 8px; padding: 10px 18px;
}
.site-nav .nav-cta:hover { background: #45c9bc; color: var(--primary-ink); }
.mob-nav { display: none; margin-left: auto; position: relative; }
.mob-nav summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-family: var(--font-h); font-weight: 600; font-size: 14px;
  border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px;
}
.mob-nav summary::-webkit-details-marker { display: none; }
.mob-nav > div {
  position: absolute; right: 0; top: calc(100% + 10px); width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 10px; box-shadow: var(--shadow); display: grid; gap: 2px;
}
.mob-nav a { color: var(--text-body); padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.mob-nav a:hover { background: var(--surface-2); color: var(--text); }
.mob-nav .nav-cta { background: var(--primary); color: var(--primary-ink); text-align: center; margin-top: 6px; }

/* hero + shared */
section { padding: 56px 0; }
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  color: var(--primary); font-family: var(--font-h); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--primary-border); background: var(--primary-dim);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), #8de6db 45%, var(--secondary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.1rem; color: var(--text-body); max-width: 60ch; }
.lead strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-h); font-size: 15px; font-weight: 700;
  padding: 13px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #45c9bc; color: var(--primary-ink); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary-border); color: var(--primary); }
.btn-small { padding: 9px 15px; font-size: 13px; }
.byline { color: var(--text-muted); font-size: 13px; margin-top: 14px; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--text-body); margin: 0; }
.trust-line { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; color: var(--text-muted); font-size: 13px; }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line svg { color: var(--primary); }

/* scan card */
.scan-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.scan-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.scan-card h2 { margin: 6px 0 8px; font-size: 1.25rem; }
.scan-card p { color: var(--text-muted); font-size: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-family: var(--font-h); font-size: 13px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-muted); }
.input, .textarea, select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 15px;
}
.textarea { min-height: 190px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus, select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-dim); }
.scan-row { display: flex; gap: 10px; }
.scan-row .input { flex: 1; }
.scan-row .btn { flex: 0 0 auto; white-space: nowrap; }
.scan-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--text-muted); font-size: 12px; }
.scan-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--primary); }
.scan-status { margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.scan-status[data-state="error"] { color: var(--red); }
.scan-status[data-state="ok"] { color: var(--green); }

/* grids + cards */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--primary-border); transform: translateY(-2px); }
.card h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-body); font-size: 14px; }
.card .limit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: 12.5px; }
.card-icon {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--primary-dim); color: var(--primary); border: 1px solid var(--primary-border);
}
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--font-h); font-weight: 600; font-size: 13px; }
.card-link svg { transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* proof */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--r-lg); overflow: hidden; }
.proof div { background: var(--surface); padding: 22px; }
.proof .n { display: block; font-family: var(--font-h); font-size: 1.9rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.proof .l { display: block; font-family: var(--font-h); font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 8px; }
.proof .note { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }

/* callouts */
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px 18px; background: var(--surface-2); margin: 1.4rem 0;
}
.callout svg { flex: 0 0 auto; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.callout-warn svg { color: var(--orange); }
.callout-info { border-color: var(--primary-border); background: var(--primary-dim); }
.callout-info svg { color: var(--primary); }
.callout-bad { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.07); }
.callout-bad svg { color: var(--red); }

/* tool UI */
.tool-shell { padding: 30px 0 50px; }
.tool-head { max-width: 760px; margin-bottom: 22px; }
.tool-head h1 { margin-bottom: 10px; }
.tool-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; margin-bottom: 26px;
}
.tool-panel .row { display: grid; gap: 14px; }
.tool-panel .row-2 { grid-template-columns: 1fr 1fr; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.result { margin-top: 22px; }
.result:empty { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r); padding: 14px; }
.stat .n { display: block; font-family: var(--font-h); font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat .l { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { font-family: var(--font-h); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; font-family: var(--font-h); }
.pill-good { background: rgba(34, 197, 94, 0.14); color: #6ee7a0; }
.pill-warn { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }
.pill-bad { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.pill-mute { background: var(--surface-3); color: var(--text-muted); }
.bar { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.score { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.score .big { font-family: var(--font-h); font-size: 2.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.score .big small { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.finding { border: 1px solid var(--border-soft); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; background: var(--surface-2); }
.finding h4 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.finding p { margin: 0; color: var(--text-body); font-size: 14px; }
.finding .fix { margin-top: 8px; color: var(--text-muted); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-word; }
.empty { color: var(--text-muted); font-size: 14px; padding: 10px 0; }
details.faq { border-bottom: 1px solid var(--border-soft); padding: 14px 0; }
details.faq summary { cursor: pointer; font-family: var(--font-h); font-weight: 600; color: var(--text); }
details.faq summary::marker { color: var(--primary); }
details.faq p { margin: 10px 0 0; color: var(--text-body); }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.related a { border: 1px solid var(--border); border-radius: var(--r-pill); padding: 7px 13px; font-size: 13px; font-weight: 600; }
.related a:hover { border-color: var(--primary-border); background: var(--primary-dim); }
.cta-box {
  margin-top: 34px; border: 1px solid var(--primary-border); border-radius: var(--r-lg);
  padding: 24px; background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
}
.cta-box h2 { margin: 0 0 8px; font-size: 1.3rem; }
.cta-box p { margin: 0 0 14px; }
.cta-box .btn { margin-right: 8px; margin-bottom: 8px; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.7rem; }
.prose p, .prose li { color: var(--text-body); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose .meta { color: var(--text-muted); font-size: 13px; margin-bottom: 1.5rem; }
.prose table { margin: 1.2rem 0; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 1.4rem 0; }
.price { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; background: var(--surface); }
.price .name { font-family: var(--font-h); font-weight: 700; color: var(--text); }
.price .amount { font-family: var(--font-h); font-size: 1.8rem; font-weight: 800; color: var(--primary); margin: 4px 0 6px; }
.price .amount small { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.price p { font-size: 13px; margin: 0; }
.price ul { margin: 10px 0 0; padding-left: 1.1em; font-size: 13px; }
.price li { color: var(--text-body); }

/* blog cards */
.post-card { display: flex; flex-direction: column; }
.post-card .date { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 { margin-top: 10px; }
.post-card .more { margin-top: auto; padding-top: 14px; }

/* footer */
.site-foot { border-top: 1px solid var(--border-soft); margin-top: 40px; padding: 44px 0 22px; background: rgba(0, 0, 0, 0.22); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr 0.8fr; gap: 28px; align-items: start; }
.foot-brand img { width: 130px; height: 50px; object-fit: contain; margin-bottom: 12px; }
.foot-brand p { font-size: 13px; color: var(--text-muted); max-width: 34ch; }
.foot-h { font-family: var(--font-h); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin: 0 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0 0 7px; }
.site-foot li a { color: var(--text-body); font-size: 13.5px; }
.site-foot li a:hover { color: var(--primary); }
.foot-small { font-size: 12.5px; color: var(--text-muted); }
.foot-mascot img { opacity: 0.9; }
.foot-bot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--border-soft); margin-top: 30px; padding-top: 16px; color: var(--text-muted); font-size: 12.5px; }
.foot-bot a { color: var(--text-muted); }

/* helpers */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.notice { border: 1px dashed var(--border); border-radius: var(--r); padding: 16px; background: var(--surface-2); font-size: 14px; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-mascot { display: none; }
}
@media (max-width: 760px) {
  .wrap, .narrow { width: min(var(--max), calc(100% - 28px)); }
  .head-in { height: 68px; }
  .site-nav { display: none; }
  .mob-nav { display: block; }
  .brand img { width: 132px; height: 50px; }
  section { padding: 40px 0; }
  .hero { padding: 44px 0 26px; }
  .grid-2, .grid-3, .grid-4, .price-grid, .tool-panel .row-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan-row { flex-direction: column; }
  .scan-row .btn { width: 100%; }
  .proof { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero-actions .btn { width: 100%; }
  h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Footer wordmark: text, not a second logo image. */
.foot-wordmark { display:inline-block; font-family:var(--font-h); font-size:26px; font-weight:800; letter-spacing:-0.04em; color:var(--primary); margin-bottom:10px; }
.foot-wordmark span { color:var(--text); }
