:root{
  --bg:#06080f;--bg-card:#0d1117;--bg-card-hover:#111820;
  --border:#1b2332;--border-hover:#2d3a4f;
  --text:#e2e8f0;--text-dim:#64748b;--text-muted:#475569;
  --accent:#3b82f6;--accent2:#8b5cf6;
  --green:#22c55e;--cyan:#06b6d4;--yellow:#eab308;--red:#ef4444;
  --radius:12px;--radius-sm:8px;
  --font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'SFMono-Regular',Consolas,'Liberation Mono',ui-monospace,monospace;
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:var(--font);background:var(--bg);color:var(--text);
  min-height:100vh;overflow-x:hidden}
a{color:var(--accent);text-decoration:none;transition:color .2s}
a:hover{color:var(--accent2)}
code{font-family:var(--mono);font-size:.85em;background:#1e293b;padding:.15em .4em;border-radius:4px}

/* Grain overlay */
body::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:9999;
  opacity:.03;background:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* Glow orbs */
.glow-orb{position:fixed;border-radius:50%;filter:blur(120px);pointer-events:none;z-index:0}
.glow-orb.blue{width:400px;height:400px;background:rgba(59,130,246,.08);top:-100px;left:-100px}
.glow-orb.purple{width:350px;height:350px;background:rgba(139,92,246,.06);bottom:-50px;right:-50px}

.wrapper{position:relative;z-index:1;max-width:720px;margin:0 auto;padding:2rem 1.5rem}
.hero-support{color:var(--text-muted);font-size:.88rem;margin-top:.45rem}

/* ─── Hero ─── */
.hero{text-align:center;margin-bottom:2.5rem}
.hero h1{font-size:2.8rem;font-weight:700;letter-spacing:-.03em;
  background:linear-gradient(135deg,#60a5fa 0%,#a78bfa 50%,#60a5fa 100%);
  background-size:200% auto;-webkit-background-clip:text;-webkit-text-fill-color:transparent;
  animation:shimmer 4s ease infinite}
@keyframes shimmer{0%,100%{background-position:0% center}50%{background-position:200% center}}
.hero p{color:var(--text-dim);font-size:1.05rem;margin-top:.5rem;max-width:480px;margin-inline:auto}

/* ─── Stats ─── */
.stats-bar{display:flex;justify-content:center;gap:.75rem;margin-bottom:2rem;flex-wrap:wrap}
.stat-chip{display:flex;align-items:center;gap:.35rem;
  background:var(--bg-card);border:1px solid var(--border);
  padding:.35rem .7rem;border-radius:20px;font-size:.78rem;color:var(--text-dim);
  font-family:var(--mono);transition:border-color .2s}
.stat-chip:hover{border-color:var(--border-hover)}
.stat-chip .num{color:var(--text);font-weight:500}

/* ─── Form ─── */
.audit-form{position:relative;display:flex;gap:.65rem;margin:0 auto 1.65rem;padding:7px;border:1px solid rgba(96,165,250,.34);
  border-radius:22px;background:linear-gradient(135deg,rgba(59,130,246,.16),rgba(139,92,246,.1) 48%,rgba(34,197,94,.08));
  box-shadow:0 20px 60px rgba(37,99,235,.18),inset 0 1px 0 rgba(255,255,255,.06);flex-wrap:wrap}
.audit-form input{flex:1;min-width:240px;min-height:56px;padding:0 1.15rem;border:1px solid rgba(96,165,250,.38);
  border-radius:16px;background:rgba(2,6,23,.78);color:var(--text);
  font-family:var(--font);font-size:1.02rem;outline:none;transition:border-color .25s,box-shadow .25s,background .25s}
.audit-form input:focus{border-color:rgba(96,165,250,.92);background:rgba(2,6,23,.92);box-shadow:0 0 0 4px rgba(59,130,246,.18),0 12px 35px rgba(37,99,235,.22)}
.audit-form input::placeholder{color:var(--text-muted)}
.audit-form input:invalid:not(:placeholder-shown){border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.input-hint{display:none;width:100%;font-size:.8rem;color:#ef4444;margin-top:-.5rem}
.input-hint.is-visible{display:block}
.btn-primary{min-height:56px;padding:0 2rem;border:none;border-radius:16px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#fff;font-family:var(--font);font-size:1rem;font-weight:800;
  cursor:pointer;transition:opacity .2s,transform .1s,box-shadow .2s;white-space:nowrap;box-shadow:0 14px 32px rgba(59,130,246,.28)}
.btn-primary:hover{opacity:.94;box-shadow:0 18px 42px rgba(59,130,246,.34)}
.btn-primary:active{transform:scale(.97)}
.btn-primary:disabled{opacity:.4;cursor:not-allowed;transform:none}
/* ─── Spinner ─── */
.spinner{display:none;text-align:center;padding:1.5rem 0}
.spinner.active{display:block}
.spinner-ring{width:36px;height:36px;border:3px solid var(--border);
  border-top-color:var(--accent);border-radius:50%;
  animation:spin .8s linear infinite;margin:0 auto .75rem}
@keyframes spin{to{transform:rotate(360deg)}}
.spinner-text{color:var(--text-dim);font-size:.85rem;transition:opacity .3s}

/* ─── Error ─── */
.error{display:none;background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.2);
  border-radius:var(--radius-sm);padding:.75rem 1rem;color:var(--red);font-size:.9rem;margin-bottom:1rem}

/* ─── Result Card ─── */
.result-card{display:none;background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.5rem;margin-bottom:1.5rem;
  animation:fadeIn .4s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.audit-meta{display:none;margin-bottom:1rem;padding:.85rem 1rem;border-radius:12px;font-size:.86rem;line-height:1.5;border:1px solid rgba(59,130,246,.22);background:rgba(59,130,246,.08);color:#bfdbfe}
.audit-meta.is-visible{display:block}
.audit-meta.cached{border-color:rgba(234,179,8,.3);background:rgba(234,179,8,.08);color:#fde68a}
.audit-meta.fresh{border-color:rgba(34,197,94,.24);background:rgba(34,197,94,.08);color:#bbf7d0}

/* Score Gauges */
.result-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:1.25rem;margin-top:1.5rem}
.metric-card{position:relative;min-width:0}
.metric-tooltip{position:absolute;left:50%;top:205px;z-index:30;display:none;width:min(340px,calc(100vw - 56px));padding:12px 13px;border:1px solid rgba(59,130,246,.28);border-radius:12px;background:#020617;color:#dbeafe;font-size:.82rem;line-height:1.45;text-align:left;box-shadow:0 18px 55px rgba(0,0,0,.38);transform:translateX(-50%)}
.gauge-wrap{text-align:center;padding:.75rem 0 1rem}
.metric-score-help{display:inline-grid;justify-items:center;cursor:help;outline:none}
.metric-score-help:focus-visible{border-radius:18px;box-shadow:0 0 0 3px rgba(59,130,246,.22)}
.citability-gauge{display:none}
.citability-gauge.is-visible{display:block}
.gauge-svg{width:150px;height:150px}
.gauge-bg{fill:none;stroke:var(--border);stroke-width:8}
.gauge-fill{fill:none;stroke-width:8;stroke-linecap:round;
  transition:stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1),stroke 1s ease}
.gauge-score{font-family:var(--mono);font-size:2.2rem;font-weight:700;fill:var(--text)}
.gauge-label{font-size:.75rem;fill:var(--text-dim);text-transform:uppercase;letter-spacing:.1em}
.band-tag{display:inline-block;font-size:.8rem;font-weight:600;letter-spacing:.05em;
  padding:.25rem .75rem;border-radius:20px;margin-top:.5rem}
.metric-title-row{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:.65rem}
.metric-title{color:var(--text);font-size:.9rem;font-weight:800;text-align:center}
.metric-info{display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid rgba(59,130,246,.32);border-radius:999px;background:rgba(59,130,246,.1);color:#bfdbfe;font:700 .72rem var(--font);line-height:1;cursor:help}
.metric-info:hover,.metric-info:focus{border-color:rgba(59,130,246,.58);background:rgba(59,130,246,.18);outline:none}
.metric-score-help:hover + .metric-title-row .metric-tooltip,.metric-score-help:focus + .metric-title-row .metric-tooltip{display:block}
.metric-info:hover + .metric-tooltip,.metric-info:focus + .metric-tooltip{display:block}

/* Breakdown bars */
.breakdown{margin-top:.75rem}
.bar-row{display:flex;align-items:center;gap:.5rem;padding:.4rem 0;font-size:.82rem}
.bar-label{width:110px;color:var(--text-dim);text-align:right;flex-shrink:0}
.bar-track{flex:1;height:6px;background:var(--border);border-radius:3px;overflow:hidden}
.bar-fill{height:100%;border-radius:3px;transition:width 1s cubic-bezier(.4,0,.2,1)}
.bar-val{width:32px;font-family:var(--mono);color:var(--text-dim);font-size:.78rem}

/* Citability */
.citability{display:flex;align-items:center;gap:1rem;margin-top:1.25rem;
  padding-top:1rem;border-top:1px solid var(--border)}
.cit-score{font-family:var(--mono);font-size:1.5rem;font-weight:700}
.cit-label{font-size:.82rem;color:var(--text-dim)}

/* Динамика */
.trend-box{display:none;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}
.trend-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.trend-kicker{font-size:.72rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:.08em}
.trend-summary{font-size:.9rem;color:var(--text);font-weight:600;margin-top:.25rem}
.trend-delta{font-family:var(--mono);font-size:1.1rem;font-weight:700}
.trend-list{display:grid;gap:.6rem;margin-top:.85rem}
.trend-row{display:grid;grid-template-columns:74px 82px 1fr;gap:.75rem;align-items:center}
.trend-date{font-family:var(--mono);font-size:.75rem;color:var(--text-dim)}
.trend-score{font-family:var(--mono);font-size:.78rem;color:var(--text)}
.trend-bar{height:7px;background:var(--border);border-radius:999px;overflow:hidden}
.trend-fill{display:block;height:100%;background:linear-gradient(90deg,#06b6d4,#22c55e)}

.result-cta{position:relative;display:grid;grid-template-columns:1fr;gap:14px;align-items:center;margin-top:1.35rem;padding:20px;border:1px solid rgba(96,165,250,.32);border-radius:22px;background:radial-gradient(circle at 14% 18%,rgba(96,165,250,.22),transparent 34%),linear-gradient(135deg,rgba(15,23,42,.96),rgba(30,41,59,.88));text-align:center;box-shadow:0 22px 70px rgba(2,6,23,.32),inset 0 1px 0 rgba(255,255,255,.06);overflow:hidden}
.result-cta::after{content:'';position:absolute;inset:auto -70px -90px auto;width:190px;height:190px;border-radius:50%;background:rgba(34,197,94,.16);filter:blur(12px);pointer-events:none}
.result-cta-copy{position:relative;z-index:1;width:100%}
.result-cta strong{display:block;width:100%;color:#f8fafc;font-size:1.04rem;line-height:1.4}
.result-cta p{margin-top:6px;color:#94a3b8;font-size:.84rem;line-height:1.5}
.result-cta p{width:100%}
.result-cta-action{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;justify-self:center;min-height:46px;padding:0 1.8rem;border-radius:16px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;font-size:.92rem;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 14px 32px rgba(59,130,246,.28);transition:opacity .2s,transform .1s,box-shadow .2s}
.result-cta-action:hover{opacity:.94;box-shadow:0 18px 42px rgba(59,130,246,.34)}
.result-cta-action:active{transform:scale(.97)}

/* Рекомендации */
.recs-section{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--border)}
.recs-toggle{background:none;border:none;color:var(--accent);cursor:pointer;
  font-family:var(--font);font-size:.85rem;font-weight:500;padding:0;display:flex;align-items:center;gap:.35rem}
.recs-toggle .arrow{transition:transform .2s;display:inline-block}
.recs-toggle.open .arrow{transform:rotate(90deg)}
.recs-list{list-style:none;margin-top:.75rem;display:none}
.recs-list.open{display:block}
.recs-list li{padding:.35rem 0;padding-left:1rem;position:relative;
  color:var(--text-dim);font-size:.83rem;line-height:1.5}
.recs-list li::before{content:'';position:absolute;left:0;top:.65rem;
  width:5px;height:5px;border-radius:50%;background:var(--yellow)}

/* Actions row */
.actions{display:flex;gap:.75rem;justify-content:center;margin-top:1.25rem;flex-wrap:wrap}
.action-link{font-size:.82rem;color:var(--text-dim);border:1px solid var(--border);
  padding:.4rem .8rem;border-radius:20px;transition:all .2s;background:transparent;font-family:var(--font);cursor:pointer;text-decoration:none}
.action-link:disabled{opacity:.72;cursor:wait}
.action-link:hover{color:var(--text);border-color:var(--border-hover)}
.action-link.primary-cta{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--accent),var(--accent2));font-weight:700}
.action-hint{flex-basis:100%;text-align:center;color:var(--text-muted);font-size:.78rem;line-height:1.5}

/* ─── Manifesto Teaser ─── */
.manifesto-teaser{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;margin-bottom:1.5rem}
.manifesto-teaser h3{font-size:1rem;font-weight:700;color:var(--text);margin-bottom:.5rem}
.manifesto-teaser p{color:var(--text-dim);font-size:.85rem;line-height:1.65;margin-bottom:.85rem}
.manifesto-pills{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.85rem}
.manifesto-pill{font-size:.75rem;font-weight:500;padding:.25rem .6rem;border-radius:20px;border:1px solid var(--border);color:var(--text-dim)}
.manifesto-link{font-size:.82rem;color:var(--accent);font-weight:500}
.manifesto-link:hover{color:var(--accent2)}

/* ─── Responsive ─── */
@media(max-width:600px){
  .wrapper{padding:1.25rem 1rem}
  .hero h1{font-size:2rem}
  .stats-bar{align-items:center;text-align:center}
  .stat-chip{justify-content:center;text-align:center}
  .audit-form{flex-direction:column}
  .audit-form input{min-width:0}
  .btn-primary{width:100%}
  .result-metrics{grid-template-columns:1fr}
  .metric-tooltip{left:0;width:100%;transform:none}
  .result-cta{grid-template-columns:1fr;text-align:center}
  .result-cta-action{width:100%}
  .bar-label{width:80px;font-size:.75rem}
}

/* ─── Floating cookie settings button ─── */
/* ─── Cookie Banner ─── */
@keyframes cookieSlideUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.cookie-banner{
  display:none;
  position:fixed;bottom:0;left:0;right:0;z-index:9999;
  padding:1.25rem 2rem;
  background:linear-gradient(135deg,rgba(13,17,23,0.97) 0%,rgba(17,24,40,0.97) 100%);
  border-top:1px solid rgba(59,130,246,0.18);
  backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  box-shadow:0 -8px 40px rgba(0,0,0,0.5),0 -1px 0 rgba(59,130,246,0.08);
  animation:cookieSlideUp .4s cubic-bezier(.16,1,.3,1) both;
}
.cookie-banner-content{
  max-width:1100px;margin:0 auto;
  display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;
}
.cookie-banner-icon{
  flex-shrink:0;width:44px;height:44px;border-radius:12px;
  background:linear-gradient(135deg,rgba(59,130,246,0.15),rgba(139,92,246,0.15));
  border:1px solid rgba(59,130,246,0.2);
  display:flex;align-items:center;justify-content:center;
  color:#3b82f6;
}
.cookie-banner-icon svg{width:22px;height:22px}
.cookie-banner-text{flex:1;min-width:220px}
.cookie-banner-title{
  font-size:.95rem;font-weight:600;color:#e2e8f0;margin-bottom:.25rem;
  background:linear-gradient(90deg,#e2e8f0,#94a3b8);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.cookie-banner-description{font-size:.82rem;color:#64748b;line-height:1.55}
.cookie-banner-link{color:#3b82f6;text-decoration:none;border-bottom:1px solid rgba(59,130,246,0.3);transition:border-color .2s}
.cookie-banner-link:hover{border-color:#3b82f6}
.cookie-banner-actions{display:flex;gap:.75rem;flex-shrink:0;align-items:center}

/* ─── Cookie Buttons ─── */
.cookie-btn{
  padding:.55rem 1.25rem;border-radius:8px;font-size:.85rem;font-weight:600;
  cursor:pointer;border:none;font-family:inherit;transition:all .2s;white-space:nowrap;
}
.cookie-btn-primary{
  background:linear-gradient(135deg,#3b82f6,#6366f1);color:#fff;
  box-shadow:0 2px 12px rgba(59,130,246,0.3);
}
.cookie-btn-primary:hover{transform:translateY(-1px);box-shadow:0 4px 20px rgba(59,130,246,0.45)}
.cookie-btn-secondary{
  background:transparent;color:#94a3b8;
  border:1px solid rgba(255,255,255,0.1);
}
.cookie-btn-secondary:hover{background:rgba(255,255,255,0.05);color:#e2e8f0;border-color:rgba(255,255,255,0.2)}

/* ─── Cookie Modal ─── */
.cookie-modal{
  position:fixed;inset:0;z-index:10000;
  display:none;align-items:center;justify-content:center;padding:1rem;
  opacity:0;transition:opacity .3s;pointer-events:none;
}
.cookie-modal:not([hidden]){display:flex;pointer-events:auto}
.cookie-modal.active{pointer-events:auto}
.cookie-modal.active{opacity:1}
.cookie-modal-overlay{
  position:absolute;inset:0;
  background:rgba(0,0,0,0.75);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
}
.cookie-modal-content{
  position:relative;z-index:1;width:100%;max-width:480px;
  background:linear-gradient(145deg,#0d1117,#111820);
  border:1px solid rgba(59,130,246,0.15);border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,0.7),0 0 0 1px rgba(255,255,255,0.04);
  overflow:hidden;
  transform:translateY(16px) scale(.98);transition:transform .3s cubic-bezier(.16,1,.3,1);
}
.cookie-modal.active .cookie-modal-content{transform:none}
.cookie-modal-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.5rem 1.5rem 1rem;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.cookie-modal-header h2{
  font-size:1.1rem;font-weight:700;
  background:linear-gradient(90deg,#e2e8f0 0%,#8b5cf6 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.cookie-modal-close{
  width:32px;height:32px;border-radius:8px;border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.04);color:#64748b;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:all .2s;
}
.cookie-modal-close:hover{background:rgba(255,255,255,0.08);color:#e2e8f0;border-color:rgba(255,255,255,0.15)}
.cookie-modal-close svg{width:16px;height:16px}
.cookie-modal-body{padding:1rem 1.5rem;display:flex;flex-direction:column;gap:.75rem}
.cookie-category{
  padding:1rem;border-radius:12px;
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(255,255,255,0.06);
  transition:border-color .2s;
}
.cookie-category:hover{border-color:rgba(59,130,246,0.15)}
.cookie-category-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.5rem}
.cookie-category-header h3{font-size:.875rem;font-weight:600;color:#e2e8f0}
.cookie-category-desc{font-size:.78rem;color:#475569;line-height:1.6}
.cookie-modal-footer{
  display:flex;gap:.75rem;padding:1rem 1.5rem 1.5rem;
  border-top:1px solid rgba(255,255,255,0.06);
}
.cookie-modal-footer .cookie-btn{flex:1}

/* ─── Toggle Switch ─── */
.cookie-switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}
.cookie-switch input{opacity:0;width:0;height:0;position:absolute}
.cookie-slider{
  position:absolute;inset:0;border-radius:24px;cursor:pointer;
  background:#1b2332;border:1px solid rgba(255,255,255,0.08);
  transition:all .25s;
}
.cookie-slider:before{
  content:'';position:absolute;height:16px;width:16px;
  left:3px;top:50%;transform:translateY(-50%);
  border-radius:50%;background:#475569;transition:all .25s;
}
input:checked + .cookie-slider{
  background:linear-gradient(135deg,#3b82f6,#6366f1);
  border-color:transparent;box-shadow:0 0 12px rgba(59,130,246,0.35);
}
input:checked + .cookie-slider:before{transform:translateY(-50%) translateX(20px);background:#fff}
input:disabled + .cookie-slider{opacity:.5;cursor:not-allowed}

/* ─── Floating cookie button ─── */
.cookie-float-btn{
  position:fixed;bottom:1.5rem;left:1.5rem;z-index:9990;
  width:42px;height:42px;border-radius:50%;
  background:rgba(13,17,23,0.92);
  border:1px solid rgba(59,130,246,0.2);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  display:none;align-items:center;justify-content:center;
  cursor:pointer;text-decoration:none;color:#64748b;
  transition:all .25s;box-shadow:0 4px 20px rgba(0,0,0,0.4);
}
.cookie-float-btn.is-visible{display:flex}
.cookie-float-btn:hover{color:#3b82f6;border-color:#3b82f6;box-shadow:0 4px 20px rgba(59,130,246,0.2);transform:scale(1.08)}
.cookie-float-btn svg{width:18px;height:18px}

@media(max-width:640px){
  .cookie-banner{padding:1rem}
  .cookie-banner-content{flex-direction:column;align-items:flex-start;gap:1rem}
  .cookie-banner-actions{width:100%;justify-content:flex-end}
  .cookie-modal-content{border-radius:14px}
}

/* ─── SEO Landing Content ─── */
.hero-kicker,.section-kicker{display:inline-flex;align-items:center;justify-content:center;margin-bottom:.65rem;padding:.28rem .65rem;border:1px solid rgba(96,165,250,.24);border-radius:999px;background:rgba(59,130,246,.08);color:#bfdbfe;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.seo-hero{margin-bottom:1.25rem}
.seo-hero .hero-lead{max-width:680px;color:#cbd5e1;font-size:1.08rem;line-height:1.65}
.form-note{max-width:620px;margin:-1rem auto 1.6rem;color:var(--text-muted);font-size:.82rem;line-height:1.55;text-align:center}
.seo-section{margin:1.5rem 0;padding:1.5rem;border:1px solid var(--border);border-radius:var(--radius);background:rgba(13,17,23,.82)}
.seo-section h2{font-size:1.35rem;line-height:1.25;letter-spacing:-.02em;color:var(--text);margin-bottom:.7rem;text-align:center}
.seo-section>p{color:var(--text-dim);font-size:.92rem;line-height:1.7;text-align:center;max-width:620px;margin:0 auto 1rem}
.seo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1rem}
.seo-grid article,.check-list span,.steps-list li,.faq-section details{border:1px solid rgba(148,163,184,.14);border-radius:14px;background:rgba(2,6,23,.34);padding:1rem}
.seo-grid h3{font-size:.95rem;color:#f8fafc;margin-bottom:.45rem}
.seo-grid p{color:var(--text-dim);font-size:.84rem;line-height:1.6}
.check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:1rem}
.check-list span{position:relative;color:#cbd5e1;font-size:.84rem;line-height:1.45;padding-left:2.1rem}
.check-list span::before{content:'✓';position:absolute;left:.85rem;top:.9rem;color:var(--green);font-weight:900}
.steps-list{display:grid;gap:.65rem;list-style:none;counter-reset:steps;margin-top:1rem}
.steps-list li{display:grid;grid-template-columns:auto 1fr;gap:.25rem .75rem;align-items:start;counter-increment:steps;color:var(--text-dim);font-size:.86rem;line-height:1.55}
.steps-list li::before{content:counter(steps);grid-row:1 / span 2;display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:rgba(59,130,246,.16);color:#bfdbfe;font-family:var(--mono);font-weight:800}
.steps-list strong{color:#f8fafc}
.steps-list span{grid-column:2}
.link-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:1rem}
.link-cards a{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid rgba(96,165,250,.2);border-radius:14px;background:rgba(59,130,246,.08);color:#bfdbfe;font-size:.86rem;font-weight:700;text-align:center}
.link-cards a:hover{border-color:rgba(96,165,250,.42);color:#fff}
.commercial-cta{background:radial-gradient(circle at 18% 18%,rgba(96,165,250,.20),transparent 34%),linear-gradient(135deg,rgba(15,23,42,.96),rgba(30,41,59,.86));border-color:rgba(96,165,250,.32)}
.cta-row{display:flex;justify-content:center;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:1rem}
.faq-section details{margin-top:.65rem;color:var(--text-dim);font-size:.88rem;line-height:1.65}
.faq-section summary{cursor:pointer;color:#f8fafc;font-weight:800}
.faq-section details p{margin-top:.55rem;color:var(--text-dim)}
@media(max-width:600px){.seo-grid,.check-list,.link-cards{grid-template-columns:1fr}.seo-section{padding:1.15rem}.seo-section h2{font-size:1.16rem}.cta-row .result-cta-action,.cta-row .action-link{width:100%;justify-content:center}.form-note{text-align:center}}

/* ─── Homepage SEO Polish 2026-05-12 ─── */
.wrapper{max-width:920px}
.hero-kicker,.seo-section > .section-kicker{display:flex;width:max-content;max-width:100%;margin:0 auto .8rem;text-align:center;box-shadow:0 0 0 1px rgba(96,165,250,.06),0 10px 26px rgba(59,130,246,.08)}
.seo-hero{text-align:center;padding-top:.4rem}
.seo-hero .hero-support{max-width:620px;margin:.75rem auto 0;color:var(--text-dim);font-size:.92rem;line-height:1.65}
.seo-section{position:relative;overflow:hidden;padding:1.85rem;text-align:center;background:radial-gradient(circle at 50% 0%,rgba(59,130,246,.10),transparent 34%),linear-gradient(180deg,rgba(15,23,42,.88),rgba(13,17,23,.78));box-shadow:0 18px 50px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025)}
.seo-section::before{content:'';position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,rgba(96,165,250,.42),transparent)}
.seo-section h2{max-width:720px;margin:0 auto .75rem;font-size:clamp(1.3rem,3vw,1.65rem)}
.seo-section > p:not(.section-kicker){max-width:680px;margin:0 auto 1.15rem;color:#aebbd0}
.seo-grid,.check-list,.steps-list,.link-cards,.route-grid,.faq-section details{text-align:left}
.seo-grid article,.check-list span,.steps-list li,.faq-section details{background:linear-gradient(180deg,rgba(15,23,42,.72),rgba(2,6,23,.34));border-color:rgba(148,163,184,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.025);transition:transform .18s ease,border-color .18s ease,background .18s ease}
.seo-grid article:hover,.check-list span:hover,.steps-list li:hover,.faq-section details:hover{transform:translateY(-1px);border-color:rgba(96,165,250,.26);background:linear-gradient(180deg,rgba(20,31,52,.74),rgba(5,10,22,.40))}
.seo-grid h3{font-size:1rem;letter-spacing:-.01em}
.check-list span{min-height:58px;display:flex;align-items:center}
.method-note{margin-top:1rem!important}
.steps-list{max-width:760px;margin:1.1rem auto 0}
.link-cards{max-width:720px;margin:1.05rem auto 0}
.route-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1.1rem auto 0;max-width:820px}
.route-grid a{display:grid;gap:.35rem;min-height:120px;padding:1rem;border:1px solid rgba(96,165,250,.20);border-radius:16px;background:linear-gradient(180deg,rgba(15,23,42,.72),rgba(2,6,23,.34));text-decoration:none;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.route-grid a:hover{transform:translateY(-1px);border-color:rgba(96,165,250,.34);background:linear-gradient(180deg,rgba(20,31,52,.78),rgba(5,10,22,.44))}
.route-grid strong{color:#f8fafc;font-size:.95rem}
.route-grid span{color:var(--text-dim);font-size:.82rem;line-height:1.55}
.intent-section .table-wrap{overflow-x:auto;margin:1.1rem auto 0;max-width:860px;border:1px solid rgba(148,163,184,.14);border-radius:18px;background:rgba(2,6,23,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.home-intent-table{width:100%;min-width:720px;border-collapse:separate;border-spacing:0;text-align:left}
.home-intent-table th,.home-intent-table td{padding:.9rem .95rem;border-bottom:1px solid rgba(148,163,184,.13);border-right:1px solid rgba(148,163,184,.10);vertical-align:top;font-size:.86rem;line-height:1.55}
.home-intent-table th:last-child,.home-intent-table td:last-child{border-right:0}
.home-intent-table tbody tr:last-child td{border-bottom:0}
.home-intent-table th{background:rgba(59,130,246,.12);color:#e0f2fe;font-weight:850}
.home-intent-table td{color:#cbd5e1;background:rgba(15,23,42,.34)}
.home-intent-table a{color:#bfdbfe;font-weight:750;text-decoration:none;border-bottom:1px solid rgba(191,219,254,.22)}
.home-intent-table a:hover{color:#fff;border-color:rgba(255,255,255,.5)}
.commercial-cta{padding:2rem;background:radial-gradient(circle at 50% 0%,rgba(139,92,246,.22),transparent 35%),radial-gradient(circle at 18% 18%,rgba(96,165,250,.22),transparent 36%),linear-gradient(135deg,rgba(15,23,42,.97),rgba(30,41,59,.9))}
.commercial-cta .section-kicker{border-color:rgba(196,181,253,.32);background:rgba(139,92,246,.12);color:#ddd6fe}
.commercial-cta .cta-row{margin-top:1.2rem}
.faq-section details{max-width:760px;margin:.7rem auto 0}
.faq-section details a,.method-section a{color:#bfdbfe;text-decoration:none;border-bottom:1px solid rgba(191,219,254,.22)}
.faq-section details a:hover,.method-section a:hover{color:#fff;border-color:rgba(255,255,255,.5)}
.manifesto-teaser{position:relative;overflow:hidden;text-align:center;padding:1.85rem;background:radial-gradient(circle at 50% 0%,rgba(34,197,94,.12),transparent 36%),linear-gradient(180deg,rgba(13,17,23,.9),rgba(8,12,20,.82));box-shadow:0 18px 50px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025)}
.manifesto-teaser::before{content:'';position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,rgba(34,197,94,.34),transparent)}
.manifesto-teaser h3{font-size:clamp(1.18rem,2.5vw,1.45rem);letter-spacing:-.02em;margin:0 auto .55rem}
.manifesto-teaser p{max-width:680px;margin:0 auto 1rem;color:#aebbd0}
.manifesto-pills{justify-content:center;margin-bottom:1rem}
.manifesto-pill{background:rgba(34,197,94,.06);border-color:rgba(34,197,94,.18);color:#bbf7d0}
.manifesto-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 .95rem;border:1px solid rgba(96,165,250,.22);border-radius:999px;background:rgba(59,130,246,.08);color:#bfdbfe}
@media(max-width:760px){.route-grid{grid-template-columns:1fr}}
@media(max-width:760px){.home-intent-table{min-width:640px}}
@media(max-width:600px){.hero-kicker,.seo-section > .section-kicker{margin-left:auto;margin-right:auto}.seo-section,.manifesto-teaser{padding:1.25rem}.seo-section h2{text-align:center}.seo-section > p:not(.section-kicker){text-align:center}.wrapper{max-width:720px}}



/* Compact mobile hero: keep the audit form visible on the first screen. */
@media(max-width:600px){
  .wrapper{padding:1rem .9rem}
  .hero{margin-bottom:1rem}
  .seo-hero{padding-top:.1rem;margin-bottom:.9rem}
  .hero-kicker,.seo-section > .section-kicker{display:inline-flex;width:auto;max-width:calc(100vw - 2.4rem);padding:.12rem .28rem;font-size:.3rem;letter-spacing:0;line-height:1.2;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  .hero h1{font-size:clamp(1.68rem,8vw,1.95rem);line-height:1.18;margin-bottom:.55rem}
  .seo-hero .hero-lead{max-width:330px;margin-top:.35rem;font-size:.95rem;line-height:1.5}
  .seo-hero .hero-support{display:none}
  .audit-form{margin-bottom:.8rem;padding:6px;border-radius:18px}
  .audit-form input,.btn-primary{min-height:50px;font-size:.96rem;border-radius:14px}
  .stats-bar{gap:.45rem;margin-bottom:1rem}
  .stat-chip{max-width:100%;padding:.28rem .55rem;font-size:.69rem;line-height:1.25}
  .stats-bar .stat-chip:nth-child(2){display:none}
  .form-note{margin:-.25rem auto 1.25rem;font-size:.78rem;line-height:1.45}
}

/* ─── Homepage light theme polish 2026-05-12 ─── */
html:not([data-theme="dark"]) .hero h1{background:linear-gradient(135deg,#1d4ed8 0%,#7c3aed 48%,#0891b2 100%);background-size:200% auto;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
html:not([data-theme="dark"]) .hero p,html:not([data-theme="dark"]) .hero-support{color:#475569}
html:not([data-theme="dark"]) .hero-kicker,html:not([data-theme="dark"]) .section-kicker{background:rgba(37,99,235,.08);border-color:rgba(37,99,235,.18);color:#1d4ed8}
html:not([data-theme="dark"]) .stat-chip{background:rgba(255,255,255,.82);border-color:rgba(203,213,225,.9);color:#475569;box-shadow:0 8px 24px rgba(15,23,42,.05)}
html:not([data-theme="dark"]) .stat-chip .num{color:#0f172a}
html:not([data-theme="dark"]) .audit-form{background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(124,58,237,.07) 48%,rgba(22,163,74,.06));border-color:rgba(37,99,235,.22);box-shadow:0 20px 60px rgba(37,99,235,.10),inset 0 1px 0 rgba(255,255,255,.82)}
html:not([data-theme="dark"]) .audit-form input{background:rgba(255,255,255,.92);color:#0f172a;border-color:rgba(148,163,184,.58)}
html:not([data-theme="dark"]) .audit-form input:focus{background:#fff;border-color:rgba(37,99,235,.68);box-shadow:0 0 0 4px rgba(37,99,235,.12),0 12px 35px rgba(37,99,235,.14)}
html:not([data-theme="dark"]) .result-card,html:not([data-theme="dark"]) .metric-card,html:not([data-theme="dark"]) .trend-box{background:rgba(255,255,255,.9);border-color:rgba(203,213,225,.88);box-shadow:0 18px 55px rgba(15,23,42,.08)}
html:not([data-theme="dark"]) .audit-meta{border-color:rgba(37,99,235,.20);background:rgba(239,246,255,.90);color:#1e3a8a}
html:not([data-theme="dark"]) .audit-meta.cached{border-color:rgba(217,119,6,.24);background:rgba(255,251,235,.92);color:#92400e}
html:not([data-theme="dark"]) .audit-meta.fresh{border-color:rgba(22,163,74,.24);background:rgba(240,253,244,.92);color:#166534}
html:not([data-theme="dark"]) .result-cta strong{color:#f8fafc}
html:not([data-theme="dark"]) .result-cta p{color:#dbeafe}
html:not([data-theme="dark"]) .seo-section,html:not([data-theme="dark"]) .manifesto-teaser{background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(248,250,252,.88));border-color:rgba(203,213,225,.88);box-shadow:0 18px 55px rgba(15,23,42,.08)}
html:not([data-theme="dark"]) .seo-section h2,html:not([data-theme="dark"]) .manifesto-teaser h3{color:#0f172a}
html:not([data-theme="dark"]) .seo-section > p:not(.section-kicker),html:not([data-theme="dark"]) .seo-grid p,html:not([data-theme="dark"]) .faq-section details p,html:not([data-theme="dark"]) .manifesto-teaser p{color:#475569}
html:not([data-theme="dark"]) .seo-grid article,html:not([data-theme="dark"]) .check-list span,html:not([data-theme="dark"]) .steps-list li,html:not([data-theme="dark"]) .faq-section details{background:rgba(255,255,255,.84);border-color:rgba(203,213,225,.84);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
html:not([data-theme="dark"]) .seo-grid h3,html:not([data-theme="dark"]) .steps-list strong,html:not([data-theme="dark"]) .faq-section summary{color:#0f172a}
html:not([data-theme="dark"]) .steps-list li::before{background:rgba(37,99,235,.13);border:1px solid rgba(37,99,235,.18);color:#2563eb}
html:not([data-theme="dark"]) .check-list span{color:#334155}
html:not([data-theme="dark"]) .link-cards a,html:not([data-theme="dark"]) .manifesto-link{background:rgba(37,99,235,.08);border-color:rgba(37,99,235,.18);color:#1d4ed8}
html:not([data-theme="dark"]) .route-grid a{background:rgba(255,255,255,.84);border-color:rgba(203,213,225,.84);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
html:not([data-theme="dark"]) .route-grid strong{color:#0f172a}
html:not([data-theme="dark"]) .route-grid span{color:#475569}
html:not([data-theme="dark"]) .intent-section .table-wrap{background:rgba(255,255,255,.74);border-color:rgba(203,213,225,.86);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
html:not([data-theme="dark"]) .home-intent-table th{background:rgba(37,99,235,.10);color:#1e3a8a}
html:not([data-theme="dark"]) .home-intent-table td{background:rgba(255,255,255,.74);color:#475569;border-color:rgba(203,213,225,.72)}
html:not([data-theme="dark"]) .home-intent-table a{color:#1d4ed8;border-color:rgba(37,99,235,.24)}
html:not([data-theme="dark"]) .home-intent-table a:hover{color:#1e40af;border-color:rgba(30,64,175,.5)}
html:not([data-theme="dark"]) .manifesto-pill{background:rgba(22,163,74,.08);border-color:rgba(22,163,74,.18);color:#166534}

/* Final mobile/tablet override for the homepage hero chip. Cursor mobile panes can be wider than 600 CSS px. */
@media(max-width:1040px){
  .seo-hero .hero-kicker{
    display:inline-flex!important;
    width:auto!important;
    max-width:calc(100vw - 2rem)!important;
    padding:.18rem .42rem!important;
    font-size:.58rem!important;
    line-height:1.15!important;
    letter-spacing:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    text-transform:uppercase;
  }
}
