/* ============ Yield — marketing design system ============ */
:root {
  --bg: #0a0e1a;
  --bg-2: #0e1324;
  --panel: rgba(255,255,255,.04);
  --panel-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.14);
  --ink: #eef1fb;
  --muted: #98a2c4;
  --faint: #6b76a0;
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --grad: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(2,6,23,.5);
  --maxw: 1140px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: #c4b5fd; text-decoration: none; }
a:hover { color: #ddd6fe; }
img { max-width: 100%; }
h1,h2,h3,h4 { line-height: 1.12; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }

/* layout helpers */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.eyebrow { display:inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: #a5b4fc; margin-bottom: 14px; }
.h-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); max-width: 640px; }
.section .lead.center, .center .lead { margin-inline: auto; }
.section-title { font-size: clamp(28px, 4.4vw, 40px); color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }

/* buttons */
.btn { display:inline-flex; align-items:center; gap:8px; justify-content:center; padding:12px 20px; border-radius:11px; border:1px solid var(--line-2); background:var(--panel-2); color:#fff; font-weight:700; font-size:15px; cursor:pointer; transition:transform .06s, box-shadow .2s, background .2s; white-space:nowrap; }
.btn:hover { text-decoration:none; color:#fff; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; box-shadow: 0 8px 24px rgba(99,102,241,.4); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(99,102,241,.55); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: #dbe3fb; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* header */
.mkt-header { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); background: rgba(10,14,26,.75); border-bottom: 1px solid var(--line); }
.mkt-header .inner { max-width: var(--maxw); margin: 0 auto; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; color: #fff; }
.brand-logo { display: block; width: 132px; height: auto; }
.brand-logo-footer { width: 150px; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mkt-header .links { display: flex; align-items: center; gap: 26px; }
.mkt-header .links a.nav { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.mkt-header .links a.nav:hover { color: #fff; }
@media (max-width: 760px) { .mkt-header .links { gap: 14px; } .mkt-header .links a.nav { display: none; } }

/* hamburger toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; z-index: 40; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 760px) {
  .nav-toggle { display: flex; flex-direction: column; }
  .mkt-header .links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 16px 24px; gap: 12px; z-index: 35; }
  .mkt-header .links.open { display: flex; }
  .mkt-header .links a.nav { display: block; font-size: 16px; padding: 8px 0; }
  .mkt-header .links .btn { width: 100%; text-align: center; }
}

/* hero */
.hero { position: relative; text-align: center; padding: 96px 24px 64px; overflow: hidden; background:
  radial-gradient(900px 460px at 50% -8%, rgba(139,92,246,.28), transparent 60%),
  radial-gradient(700px 400px at 85% 10%, rgba(99,102,241,.18), transparent 55%); }
.hero .badge-pill { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border:1px solid var(--line-2); border-radius:999px; background:var(--panel); font-size:13px; color:#c7d0ea; margin-bottom:22px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); color: #fff; max-width: 940px; margin: 0 auto 20px; }
.hero .lead { font-size: clamp(17px, 2.4vw, 21px); max-width: 640px; margin: 0 auto 30px; }
.audit-form { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; }
.audit-form input { flex: 1; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: #fff; font-size: 15px; }
.audit-form input::placeholder { color: var(--faint); }
.hero-sub { color: var(--faint); font-size: 13px; margin-top: 14px; }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust .inner { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.trust b { color: var(--ink); }

/* the loop */
.loop { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 30px auto 0; max-width: 860px; }
.loop .step { background: var(--panel-2); border: 1px solid var(--line); color: #dbe3fb; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.loop .step.hot { background: linear-gradient(135deg, rgba(99,102,241,.35), rgba(139,92,246,.35)); border-color: rgba(139,92,246,.5); color:#fff; }
.loop .arrow { color: var(--faint); align-self: center; }

/* split (problem / solution) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } }
.split .col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.split .col.good { border-color: rgba(139,92,246,.4); background: linear-gradient(180deg, rgba(139,92,246,.10), var(--panel)); }
.split h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.split ul { margin: 0; padding-left: 18px; color: var(--muted); }
.split li { padding: 5px 0; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px){ .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .ico { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(139,92,246,.25)); border: 1px solid var(--line-2); }
.feature h3 { color: #fff; margin: 14px 0 8px; font-size: 17px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.step-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step-card .num { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 14px; }
.step-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* proof */
.proof { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
@media (max-width: 820px){ .proof { grid-template-columns: 1fr; } }
.proof-card { background: linear-gradient(180deg, rgba(34,197,94,.10), var(--panel)); border: 1px solid rgba(34,197,94,.3); border-radius: var(--radius); padding: 26px; }
.proof-card .tag { font-size: 12px; font-weight: 800; color: #4ade80; text-transform: uppercase; letter-spacing:.08em; }
.proof-stats { display:flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.proof-stats .stat { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.proof-stats .stat b { display:block; font-size: 22px; color:#fff; }
.proof-stats .stat span { font-size: 12px; color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px){ .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .plans { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.pop { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 50px rgba(99,102,241,.25); background: linear-gradient(180deg, rgba(99,102,241,.12), var(--panel)); }
.plan h3 { color: #fff; font-size: 18px; }
.plan .price { font-size: 30px; font-weight: 800; color: #fff; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 12px 0 18px; padding: 0; color: var(--muted); font-size: 14px; flex: 1; }
.plan li { padding: 6px 0; display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: #4ade80; font-weight: 800; }
.badge-pop { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing:.04em; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 16px; font-size: 15px; }

/* cta band */
.cta-band { text-align: center; background:
  radial-gradient(700px 300px at 50% 0%, rgba(139,92,246,.25), transparent 60%), var(--bg-2);
  border-top: 1px solid var(--line); }
/* _InstallBox emits a form plus its own note, so its container must stay a block —
   as a flex row the note lines up beside the form and squeezes the input. */
.cta-install { display: block; }

/* footer */
.mkt-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.mkt-footer .cols { max-width: var(--maxw); margin: 0 auto; padding: 52px 24px 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px){ .mkt-footer .cols { grid-template-columns: 1fr 1fr; } }
.mkt-footer h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing:.08em; margin: 0 0 12px; }
.mkt-footer ul { list-style: none; margin: 0; padding: 0; }
.mkt-footer li { padding: 5px 0; }
.mkt-footer a { color: var(--muted); font-size: 14px; }
.mkt-footer a:hover { color: #fff; }
.mkt-footer .tagline { color: var(--muted); font-size: 14px; max-width: 260px; margin-top: 10px; }
.mkt-footer .bottom { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; padding: 18px 24px; max-width: var(--maxw); margin: 0 auto; }

/* ============ Audit ============ */
.audit-err { color: #fca5a5; margin-top: 12px; }
.audit-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.score-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.score-ring { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.score-inner { width: 90px; height: 90px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.sev-counts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sev-chip { padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 12.5px; }
.sev-high { background: rgba(239,68,68,.16); color: #fca5a5; }
.sev-med { background: rgba(245,158,11,.16); color: #fcd34d; }
.sev-low { background: rgba(99,102,241,.16); color: #c4b5fd; }
.issue-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.issue { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.issue-type { font-weight: 700; color: #fff; }
.issue-detail { color: var(--muted); font-size: 13.5px; }
.gate { background: rgba(255,255,255,.03); border: 1px dashed var(--line-2); border-radius: 12px; padding: 20px; margin-top: 18px; }
.gate-done { border-style: solid; border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.08); }

/* ============ Blog ============ */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 900px){ .blog-layout { grid-template-columns: 1fr; } }
.blog-main h2 { color: #fff; margin-bottom: 22px; }
.muted { color: var(--muted); }
.post-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-card:first-of-type { padding-top: 6px; }
.post-title { color: #fff; font-size: 23px; font-weight: 800; }
.post-title:hover { color: #c4b5fd; }
.post-meta { color: var(--faint); font-size: 13px; margin: 5px 0 10px; }
.post-summary { color: var(--muted); margin: 0 0 10px; }
.read-more { font-weight: 700; font-size: 14px; }
.pager { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.pager-pos { color: var(--faint); font-size: 13px; }
.blog-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.side-card h4 { margin: 0 0 12px; color: #fff; font-size: 14px; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.side-card li:last-child { border-bottom: 0; }
.side-card a { color: var(--muted); } .side-card a:hover { color: #fff; }
.side-card .views { color: var(--faint); font-size: 12px; }
.back { color: #c4b5fd; font-size: 14px; display: inline-block; margin-bottom: 12px; }
.post-h1 { color: #fff; font-size: clamp(30px, 4.4vw, 44px); margin: 6px 0 6px; }
.post-body { color: #d7def4; font-size: 16.5px; }
.post-body h2 { color: #fff; margin: 28px 0 10px; }
.post-body p { margin: 14px 0; }
.post-body a { color: #c4b5fd; }
.post-cta { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ============ Admin ============ */
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.admin-head h2 { color: #fff; }
.admin-card { background: #fff; color: #0f172a; border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.admin-card h2 { color: #0f172a; }
.admin-card label { display: block; font-weight: 700; font-size: 13px; margin: 14px 0 6px; color: #0f172a; }
.admin-card label.admin-check { display: flex; align-items: center; gap: 8px; }
.admin-input { width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 14px; color: #0f172a; background:#fff; }
.admin-input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.admin-input.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.admin-error { color: #dc2626; font-size: 14px; margin-top: 10px; }
.admin-table { width: 100%; border-collapse: collapse; color: #0f172a; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.admin-table th { color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-table a { color: #4f46e5; }
.admin-table .muted { color: #64748b; }

/* aliases for pages still using earlier class names */
.mkt-section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.mkt-hero { position: relative; text-align: center; padding: 90px 24px 44px; background:
  radial-gradient(900px 460px at 50% -8%, rgba(139,92,246,.28), transparent 60%); }
.mkt-hero h1 { font-size: clamp(34px, 6vw, 58px); color:#fff; max-width:900px; margin:0 auto 18px; }
.mkt-hero .lead { margin: 0 auto 26px; }

/* hero product preview (illustrative) */
.hero-preview { max-width: 560px; margin: 40px auto 0; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); text-align: left; overflow: hidden; }
.hp-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.hp-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.hp-bar .dot.r{background:#ef4444;} .hp-bar .dot.y{background:#f59e0b;} .hp-bar .dot.g{background:#22c55e;}
.hp-title { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.hp-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hp-emoji { font-size: 18px; }
.hp-row > div:nth-child(2) { flex: 1; }
.hp-t { color: #fff; font-weight: 600; font-size: 14px; }
.hp-m { color: var(--faint); font-size: 12px; margin-top: 2px; }
.hp-est { color: #4ade80; font-weight: 800; font-size: 14px; text-align: right; white-space: nowrap; }
.hp-est span { display: block; color: var(--faint); font-weight: 500; font-size: 11px; }
.hp-foot { padding: 12px 16px; font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.02); }

/* integrations strip */
.integrations { background: var(--bg); border-bottom: 1px solid var(--line); padding: 30px 0; }
.integrations .intg-row { display: flex; align-items: center; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 8px 0; }
.intg-label { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; min-width: 200px; text-align: right; }
@media (max-width: 760px){ .intg-label { min-width: 0; text-align: center; width: 100%; } }
.intg-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.intg-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: #d7def4; font-size: 13.5px; font-weight: 600; }

/* who it's for (persona split) */
.persona { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px){ .persona { grid-template-columns: 1fr; } }
.persona-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.persona-card .ico { font-size: 26px; margin-bottom: 10px; }
.persona-card h3 { color: #fff; margin: 0 0 8px; font-size: 20px; }
.persona-card > p { color: var(--muted); margin: 0 0 16px; }
.persona-card ul { list-style: none; margin: 0; padding: 0; }
.persona-card li { color: #d7def4; padding: 7px 0 7px 26px; position: relative; font-size: 14.5px; }
.persona-card li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 800; }

/* comparison table */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare thead th { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line-2); }
.compare tbody th { color: #fff; font-weight: 700; width: 22%; }
.compare td.them { color: var(--muted); }
.compare td.us, .compare thead th.us { color: #fff; background: linear-gradient(180deg, rgba(99,102,241,.12), rgba(139,92,246,.05)); font-weight: 600; }
.compare thead th.us { color: #c7b9ff; font-weight: 800; border-radius: 12px 12px 0 0; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }

/* ============ Free SEO tools ============ */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px){ .tools-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .tools-grid { grid-template-columns: 1fr; } }
.tool-card { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; }
.tool-card:hover { border-color: var(--line-2); transform: translateY(-2px); color: inherit; text-decoration: none; }
.tool-card .ico { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(139,92,246,.25)); border: 1px solid var(--line-2); margin-bottom: 8px; }
.tool-card h3 { color: #fff; font-size: 16.5px; }
.tool-card p { color: var(--muted); font-size: 14px; flex: 1; }
.tool-card .go { color: #c4b5fd; font-weight: 700; font-size: 13.5px; margin-top: 6px; }
.tool-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tool-tag { font-size: 11px; font-weight: 700; color: #a5b4fc; background: rgba(99,102,241,.14); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* tool page shell */
.tool-wrap { max-width: 840px; margin: 0 auto; padding: 44px 24px 72px; }
.tool-head { text-align: center; margin-bottom: 26px; }
.tool-head h1 { color: #fff; font-size: clamp(28px, 5vw, 42px); margin: 10px 0 12px; }
.tool-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.tool-back { color: #c4b5fd; font-size: 14px; display: inline-block; margin-bottom: 14px; }
.tool-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tool-panel + .tool-panel { margin-top: 18px; }
.tool-panel h2 { color: #fff; font-size: 17px; margin-bottom: 14px; }

/* fields */
.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #d7def4; margin-bottom: 6px; }
.field label .hint { color: var(--faint); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: #fff; font-size: 14.5px; font-family: inherit; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { resize: vertical; min-height: 84px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .field-grid { grid-template-columns: 1fr; } }
.charcount { float: right; color: var(--faint); font-weight: 600; font-size: 12px; }
.charcount.over { color: #fca5a5; }
.charcount.good { color: #4ade80; }

/* code output + copy */
.code-out { position: relative; background: #070a14; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 8px; }
.code-out pre { margin: 0; overflow-x: auto; color: #d7def4; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre; }
.btn-copy { position: absolute; top: 10px; right: 10px; background: var(--panel-2); border: 1px solid var(--line-2); color: #dbe3fb; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.btn-copy:hover { color: #fff; background: rgba(255,255,255,.1); }

/* SERP preview */
.serp-label { font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.serp-label.mt { margin-top: 20px; }
.serp { background: #fff; border-radius: 12px; padding: 16px 20px; font-family: arial, sans-serif; }
.serp.mobile { max-width: 412px; }
.serp-crumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #202124; }
.serp-crumb .fav { width: 18px; height: 18px; border-radius: 50%; background: #e8eaed; display: inline-block; }
.serp-crumb .path { color: #5f6368; }
.serp-title { color: #1a0dab; font-size: 20px; line-height: 1.3; margin: 3px 0 3px; }
.serp.mobile .serp-title { font-size: 18px; }
.serp-desc { color: #4d5156; font-size: 14px; line-height: 1.58; }

/* estimate / result */
.estimate { background: linear-gradient(180deg, rgba(34,197,94,.10), var(--panel)); border: 1px solid rgba(34,197,94,.32); border-radius: 14px; padding: 22px; text-align: center; }
.estimate .big { font-size: clamp(28px, 6vw, 40px); font-weight: 800; color: #4ade80; letter-spacing: -.02em; }
.estimate .cap { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 560px){ .stat-row { grid-template-columns: 1fr; } }
.stat-box { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.stat-box b { display: block; font-size: 22px; color: #fff; letter-spacing: -.02em; }
.stat-box span { font-size: 12.5px; color: var(--muted); }
.method { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.method b { color: #d7def4; }

/* signals / checklist */
.sig { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.sig + .sig { margin-top: 8px; }
.sig .dot { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.sig .dot.pass { background: rgba(34,197,94,.16); color: #4ade80; }
.sig .dot.fail { background: rgba(239,68,68,.16); color: #fca5a5; }
.sig .dot.warn { background: rgba(245,158,11,.16); color: #fcd34d; }
.sig .dot.info { background: rgba(99,102,241,.16); color: #c4b5fd; }
.sig .s-name { font-weight: 700; color: #fff; font-size: 14.5px; }
.sig .s-detail { color: var(--muted); font-size: 13.5px; margin-top: 2px; word-break: break-word; }

/* verdict banner */
.verdict-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; margin-bottom: 16px; }
.verdict-banner.good { background: rgba(34,197,94,.10); border: 1px solid rgba(34,197,94,.32); }
.verdict-banner.bad { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.32); }
.verdict-banner .vb-ico { font-size: 28px; }
.verdict-banner h3 { color: #fff; font-size: 18px; margin: 0 0 2px; }
.verdict-banner p { color: var(--muted); font-size: 14px; }
.url-line { color: var(--faint); font-size: 13px; word-break: break-all; margin-top: 4px; }

/* redirect chain + headers */
.hop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.hop + .hop { margin-top: 8px; }
.hop .code { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 8px; flex: none; }
.code-2 { background: rgba(34,197,94,.16); color: #4ade80; }
.code-3 { background: rgba(245,158,11,.16); color: #fcd34d; }
.code-4, .code-5 { background: rgba(239,68,68,.16); color: #fca5a5; }
.hop .hop-url { color: #d7def4; font-size: 13.5px; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; }
.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv td.k { color: var(--muted); font-weight: 600; white-space: nowrap; width: 34%; font-family: ui-monospace, Menlo, Consolas, monospace; }
.kv td.v { color: #d7def4; word-break: break-word; font-family: ui-monospace, Menlo, Consolas, monospace; }
.kv tr:last-child td { border-bottom: 0; }

/* helpers */
.tool-err { color: #fca5a5; margin-top: 12px; font-size: 14px; }
.tool-note { color: var(--faint); font-size: 12.5px; text-align: center; margin-top: 14px; }
.tool-cta { margin-top: 20px; }
.add-row { margin-top: 10px; }

/* ── Shopify install box ─────────────────────────────────────────────────── */
/* The primary conversion point: a merchant types their store and lands in the
   Shopify grant screen. Mirrors .audit-form so the two read as one family. */
.install-box{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:26px auto 0;max-width:560px}
.install-box input{flex:1 1 300px;min-width:0;padding:14px 16px;border:1px solid var(--line,#2a2f3a);border-radius:10px;
  font-size:16px;background:var(--panel,#fff);color:inherit;font-family:inherit}
.install-box input:focus{outline:none;border-color:var(--brand,#465fff);box-shadow:0 0 0 3px rgba(70,95,255,.18)}
.install-box .btn{flex:0 0 auto;padding:14px 22px;font-size:16px}
.install-note{text-align:center;margin:10px auto 0;font-size:14px;opacity:.7}
.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}
/* Stacked, the basis of `flex:1 1 300px` would size the input's HEIGHT — reset it. */
@media (max-width:520px){.install-box{flex-direction:column}.install-box input{flex:0 0 auto;width:100%}.install-box .btn{width:100%}}
