/* ====================================================
   ANALYZER PAGE — PREMIUM STYLES
   ==================================================== */

.analyzer-hero {
    position: relative;
    padding: 100px 0 10px;
    background:
        radial-gradient(circle at 12% 10%, #eaf2ff 0%, transparent 45%),
        radial-gradient(circle at 88% 0%, #eef4ff 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}
.analyzer-hero .container { position: relative; z-index: 2; }
.analyzer-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
}
.analyzer-hero-content h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    margin: 22px 0 20px;
    font-weight: 800;
    color: var(--ink);
}
.analyzer-form { margin: 34px 0 18px; }
.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--royal-100);
    border-radius: var(--r-pill);
    padding: 10px 10px 10px 22px;
    box-shadow: var(--sh-md);
    transition: var(--t);
    max-width: 560px;
}
.input-wrap:focus-within { border-color: var(--royal-400); box-shadow: 0 24px 60px rgba(37,99,235,.18); }
.search-ic { width: 22px; height: 22px; fill: none; stroke: var(--royal-500); stroke-width: 2; stroke-linecap: round; flex: none; }
.input-wrap input {
    flex: 1; border: none; background: none; font-size: 17px; color: var(--ink); font-weight: 600;
}
.input-wrap input::placeholder { color: #9fb0cf; font-weight: 500; }
.input-wrap .btn-premium { height: 52px; padding: 0 30px; }
.form-note { font-size: 13px; color: #8497b8; margin: 12px 0 0 8px; }
.analyzer-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.analyzer-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--royal-700); }

/* Score preview card */
.analyzer-hero-visual { display: flex; justify-content: center; }
.score-preview {
    width: 100%; max-width: 380px; padding: 40px 34px; text-align: center;
}
.score-preview-label { margin-top: 8px; font-weight: 700; color: var(--ink); }

/* Ring */
.sp-ring { position: relative; width: 170px; height: 170px; margin: auto; }
.sp-ring.big { width: 200px; height: 200px; }
.sp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e6efff; stroke-width: 10; }
.ring-fg {
    fill: none; stroke: #2563eb; stroke-width: 10; stroke-linecap: round;
    stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1.4s var(--ease);
}
.ring-num {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 46px; font-weight: 800; color: var(--ink);
}
.sp-ring.big .ring-num { font-size: 58px; }

.preview-bars { margin-top: 26px; display: grid; gap: 12px; text-align: left; }
.pb { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.pb i { display: block; height: 8px; border-radius: 8px; background: #e6efff; position: relative; overflow: hidden; }
.pb i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 8px; background: var(--grad-royal); }

/* Result */
.analyzer-result { padding: 30px 0 60px; }
.error-box {
    background: #fff3f4; border: 1px solid #ffd2d8; color: #b42334;
    padding: 22px 26px; border-radius: var(--r-lg); font-weight: 600;
}
.error-box strong { display: block; margin-bottom: 4px; font-size: 17px; }
.result-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.result-url .result-label { display: block; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.result-url strong { font-size: 22px; color: var(--ink); word-break: break-all; }

.score-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; }
.overall-card { padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.overall-card h3 { font-size: 26px; font-weight: 800; margin-top: 14px; }
.overall-card p { color: var(--muted); font-weight: 600; }
.cat-cards { display: grid; grid-template-columns: 1fr; gap: 24px; align-content: center; }
.cat-card { padding: 26px 30px; }
.cat-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--ink); font-size: 18px; margin-bottom: 14px; }
.cat-top b { font-size: 30px; }
.cat-bar { height: 12px; border-radius: 12px; background: #e6efff; overflow: hidden; }
.cat-bar i { display: block; height: 100%; width: 0; border-radius: 12px; background: var(--c, #2563eb); transition: width 1.3s var(--ease); }

/* Metric strip */
.metric-strip {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin: 26px 0;
}
.ms { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 12px; text-align: center; box-shadow: var(--sh-sm); }
.ms-ic { font-size: 20px; display: block; margin-bottom: 6px; }
.ms b { display: block; font-size: 16px; color: var(--ink); }
.ms small { color: var(--muted); font-size: 12px; }

/* Findings */
.findings-block { margin-top: 20px; }
.findings-block h2 { font-size: 32px; font-weight: 800; color: var(--ink); }
.findings-list { display: grid; gap: 14px; margin-top: 22px; }
.finding {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 20px 22px; box-shadow: var(--sh-sm); transition: var(--t-fast);
}
.finding:hover { transform: translateX(6px); box-shadow: var(--sh-md); }
.f-ic {
    flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    font-weight: 900; font-size: 18px; color: #fff;
}
.sev-high { border-left: 4px solid #f4455f; }
.sev-high .f-ic { background: #f4455f; }
.sev-med { border-left: 4px solid #f5a524; }
.sev-med .f-ic { background: #f5a524; }
.sev-low { border-left: 4px solid #2563eb; }
.sev-low .f-ic { background: #2563eb; }
.finding.ok { border-left: 4px solid #16b364; }
.finding.ok .f-ic { background: #16b364; }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.f-head h4 { font-size: 17px; color: var(--ink); font-weight: 800; }
.f-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--royal-600); background: var(--royal-50); padding: 4px 10px; border-radius: 8px; }
.f-body p { color: var(--muted); margin-top: 4px; font-size: 15px; }

/* Result CTA */
.result-cta { margin-top: 34px; }
.result-cta .glass-card { padding: 40px; text-align: center; }
.result-cta h3 { font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.result-cta p { max-width: 640px; margin: 0 auto 22px; }

/* How */
.analyzer-how { padding: 20px 0; background: var(--surface-2); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }

/* Core Web Vitals */
.cwv-block { margin: 18px 0; }
.cwv-block h2 { font-size: 28px; font-weight: 800; color: var(--ink); }
.cwv-block h2 small { font-size: 13px; color: var(--muted); font-weight: 700; vertical-align: middle; }
.cwv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 16px; }
.cwv-card { padding: 22px 18px; border-top: 3px solid var(--c, #2563eb); }
.cwv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cwv-abbr { font-size: 18px; font-weight: 900; color: var(--ink); }
.cwv-status { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cwv-val { font-size: 30px; font-weight: 800; color: var(--c, #2563eb); line-height: 1.1; }
.cwv-name { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }

.strategy-badge {
    display: inline-block; margin-left: 10px; padding: 4px 12px; border-radius: 999px;
    background: var(--royal-50); color: var(--royal-600); font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em;
}
.how-card { padding: 34px 30px; }
.how-num { font-size: 16px; font-weight: 900; color: #fff; width: 46px; height: 46px; border-radius: 12px; background: var(--grad-royal); display: grid; place-items: center; box-shadow: var(--sh-glow); margin-bottom: 18px; }
.how-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.how-card p { font-size: 15px; }

/* Responsive */
@media (max-width: 1200px) {
    .metric-strip { grid-template-columns: repeat(4, 1fr); }
    .cwv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
    .analyzer-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .score-grid { grid-template-columns: 1fr; }
    .metric-strip { grid-template-columns: repeat(3, 1fr); }
    .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .metric-strip { grid-template-columns: repeat(2, 1fr); }
    .cwv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .analyzer-hero { padding: 100px 0 10px; }
    .input-wrap { flex-wrap: wrap; padding: 12px; border-radius: 22px; }
    .input-wrap input { width: 100%; padding: 8px 4px; }
    .input-wrap .btn-premium { width: 100%; }
    .metric-strip { grid-template-columns: repeat(2, 1fr); }
    .cwv-grid { grid-template-columns: 1fr; }
    .score-grid { gap: 14px; }
}
