/* Hogy lát téged az AI | gcortex.hu/hogy-lat-teged-az-ai/
 * Verzió: 2.1 | 2026-10-12 | Kiemelve az index.php-ból; haladássáv, honeypot osztály
 */
:root {
  --bg:           #f8f9fc;
  --bg2:          #ffffff;
  --panel:        #ffffff;
  --border:       rgba(23,92,211,0.10);
  --border-b:     rgba(23,92,211,0.28);
  --blue:         #175cd3;
  --blue-l:       #2e7cf6;
  --blue-dim:     rgba(23,92,211,0.08);
  --electric:     #0ea5e9;
  --amber:        #d97706;
  --amber-dim:    rgba(217,119,6,0.10);
  --green:        #059669;
  --green-dim:    rgba(5,150,105,0.09);
  --red:          #dc2626;
  --red-dim:      rgba(220,38,38,0.08);
  --text:         #0f172a;
  --text-m:       #334155;
  --text-f:       #64748b;
  --mono:         'IBM Plex Mono', monospace;
  --sans:         'Sora', sans-serif;
  --r:            10px;
  --r-lg:         16px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.75; font-size: 16px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

.site-header { background: #0f172a; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-inner { max-width: 920px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--mono); font-size: 0.82em; color: var(--electric); letter-spacing: 0.07em; }
.logo span { color: rgba(14,165,233,0.5); }
.badge { font-family: var(--mono); font-size: 0.72em; color: #64748b; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 3px 10px; border-radius: 20px; }

.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a6e 100%); padding: 36px 0 32px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 0%, rgba(14,165,233,0.12) 0%, transparent 60%); }
.hero-tag { font-family: var(--mono); font-size: 0.75em; color: var(--electric); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; display: inline-block; position: relative; }
.hero h1 { font-size: clamp(1.3em, 3vw, 1.75em); font-weight: 800; color: #ffffff; line-height: 1.25; margin-bottom: 16px; position: relative; }
.hero h1 em { color: var(--electric); font-style: normal; }
.hero-sub { font-size: 1.05em; color: rgba(255,255,255,0.65); max-width: 620px; margin: 0 auto 32px; position: relative; }
.hero-tagline { font-size: clamp(1.2em, 2.6vw, 1.75em); font-weight: 800; color: #fff; line-height: 1.2; margin: 0 auto 20px; position: relative; max-width: 720px; letter-spacing: -0.01em; }
.hero-tagline em { color: var(--electric); font-style: normal; }
.ai-logos { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 0; position: relative; }
.ai-chip { font-family: var(--mono); font-size: 0.72em; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); padding: 4px 12px; border-radius: 20px; }
.ai-chip.active { background: rgba(14,165,233,0.15); border-color: var(--electric); color: var(--electric); }
.ai-sep { color: rgba(255,255,255,0.2); font-size: 0.8em; }

.form-section { padding: 0 0 36px; }
.form-card { background: var(--panel); border: 1px solid var(--border-b); border-radius: var(--r-lg); padding: 40px; box-shadow: 0 4px 24px rgba(23,92,211,0.06); }
.form-title { font-size: 1.1em; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-sub { font-size: 0.9em; color: var(--text-f); margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82em; font-weight: 600; color: var(--text-m); letter-spacing: 0.02em; }
.form-group label span { color: var(--red); margin-left: 2px; }
.form-group input, .form-group textarea { border: 1px solid var(--border-b); border-radius: var(--r); padding: 10px 14px; font-family: var(--sans); font-size: 0.95em; color: var(--text); background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,92,211,0.10); }
.form-group textarea { resize: vertical; min-height: 72px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #94a3b8; }
.form-hint { font-size: 0.75em; color: var(--text-f); font-style: italic; }
.form-hint-top { font-size: 0.82em; color: #0369a1; background: rgba(14,165,233,0.08); border-left: 3px solid #0ea5e9; padding: 6px 10px; border-radius: 4px; margin-bottom: 8px; }
.form-hint-top strong { color: #075985; }

.submit-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-analyze { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; border: none; border-radius: var(--r); padding: 13px 28px; font-family: var(--sans); font-size: 0.95em; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.btn-analyze:hover { background: var(--blue-l); transform: translateY(-1px); }
.btn-analyze svg { width: 18px; height: 18px; }
.form-note { font-family: var(--mono); font-size: 0.72em; color: var(--text-f); }

.error-box { background: var(--red-dim); border: 1px solid rgba(220,38,38,0.3); border-radius: var(--r); padding: 16px 20px; margin-top: 20px; color: var(--red); font-size: 0.9em; }

.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.75); backdrop-filter: blur(4px); z-index: 999; align-items: center; justify-content: center; flex-direction: column; gap: 20px; }
.loading-overlay.active { display: flex; }
.spinner { width: 48px; height: 48px; border: 3px solid rgba(14,165,233,0.2); border-top-color: var(--electric); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: var(--mono); font-size: 0.85em; color: rgba(255,255,255,0.7); text-align: center; max-width: 420px; padding: 0 20px; }

.result-section { padding: 36px 0 36px; }
.result-header { background: linear-gradient(135deg, #0f172a 0%, #1a2f5a 100%); border-radius: var(--r-lg); padding: 40px; margin-bottom: 28px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.score-circle { width: 130px; height: 130px; flex-shrink: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid; position: relative; }
.score-num { font-family: var(--mono); font-size: 2.4em; font-weight: 700; line-height: 1; color: #fff; }
.score-max { font-family: var(--mono); font-size: 0.7em; color: rgba(255,255,255,0.4); margin-top: 4px; }
.score-alap { font-family: var(--mono); font-size: 0.62em; color: rgba(255,255,255,0.3); margin-top: 2px; }
.meres-figyelmeztetes {
  background: #fff8e1;
  border: 1px solid #f0c36d;
  border-left: 4px solid #e8a33d;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 0.92em;
  line-height: 1.55;
  color: #6b4d12;
}
.meres-figyelmeztetes strong { color: #8a5a00; }
.result-meta { flex: 1; min-width: 220px; }
.result-cegnev { font-family: var(--mono); font-size: 0.75em; color: var(--electric); letter-spacing: 0.08em; margin-bottom: 8px; }
.result-input-info { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px; align-items: baseline; }
.result-input-label { font-family: var(--mono); font-size: 0.65em; color: rgba(255,255,255,0.42); letter-spacing: 0.08em; font-weight: 700; }
.result-input-val { font-family: var(--mono); font-size: 0.82em; color: rgba(255,255,255,0.85); margin-right: 6px; }
.result-label { font-size: 1.5em; font-weight: 800; color: #fff; margin-bottom: 8px; }
.result-uzenet { font-size: 0.95em; color: rgba(255,255,255,0.7); line-height: 1.5; }
.ai-coverage { font-family: var(--mono); font-size: 0.72em; color: rgba(255,255,255,0.4); margin-top: 12px; }

.engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.engine-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; }
.engine-card.unavailable { opacity: 0.55; }
.engine-name { font-family: var(--mono); font-size: 0.78em; font-weight: 700; color: var(--blue); background: var(--blue-dim); display: inline-block; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; letter-spacing: 0.04em; }
.engine-score { font-family: var(--mono); font-size: 2.4em; font-weight: 700; line-height: 1; color: var(--text); }
.engine-score-max { font-size: 0.5em; color: var(--text-f); }
.engine-desc { font-size: 0.85em; color: var(--text-m); margin-top: 8px; line-height: 1.5; }
.engine-bar-wrap { height: 5px; background: var(--bg); border-radius: 3px; margin: 12px 0 6px; }
.engine-bar { height: 100%; border-radius: 3px; transition: width 0.6s ease; }

.q-section { background: var(--panel); border: 1px solid var(--border-b); border-radius: var(--r-lg); padding: 32px; margin-bottom: 28px; }

/* ── BRAND-CHECK SZEKCIÓ (extra diagnosztika, nem ér pontot) ── */
.brand-check-section { background: linear-gradient(135deg, rgba(14,165,233,0.05) 0%, rgba(99,102,241,0.04) 100%); border: 1px solid rgba(14,165,233,0.18); border-radius: var(--r-lg); padding: 28px; margin-bottom: 28px; }
.brand-check-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.brand-check-title { font-size: 1.05em; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand-check-title svg { color: #0ea5e9; }
.brand-check-tag { font-family: var(--mono); font-size: 0.68em; font-weight: 700; letter-spacing: 0.06em; color: #0369a1; background: rgba(14,165,233,0.12); padding: 4px 10px; border-radius: 12px; }
.brand-check-intro { font-size: 0.88em; color: var(--text-f); margin-bottom: 18px; line-height: 1.6; }
.brand-check-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; border-left: 4px solid var(--border); }
.brand-check-card:last-child { margin-bottom: 0; }
.brand-check-card.visible { border-left-color: #16a34a; }
.brand-check-card.absent { border-left-color: #ef4444; background: rgba(239,68,68,0.03); }
.brand-check-q { font-weight: 700; font-size: 0.95em; color: var(--text); margin-bottom: 10px; }
.brand-check-engines { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brand-check-eng { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: var(--bg); border-radius: 6px; border-left: 3px solid var(--border); }
.brand-check-eng-name { font-family: var(--mono); font-size: 0.72em; font-weight: 700; color: var(--text-m); text-transform: uppercase; letter-spacing: 0.05em; }
.brand-check-eng-status { font-size: 0.85em; font-weight: 600; }
.brand-check-eng.ok { border-left-color: #16a34a; }
.brand-check-eng.ok .brand-check-eng-status { color: #16a34a; }
.brand-check-eng.no { border-left-color: #ef4444; }
.brand-check-eng.no .brand-check-eng-status { color: #ef4444; }
.brand-check-eng.err { border-left-color: #94a3b8; }
.brand-check-eng.err .brand-check-eng-status { color: #94a3b8; font-style: italic; }
.q-section-title { font-size: 1.05em; font-weight: 700; margin-bottom: 6px; }
.q-section-sub { font-size: 0.88em; color: var(--text-f); margin-bottom: 24px; }
.q-card { border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.q-card:last-child { margin-bottom: 0; }
.q-text { font-size: 0.95em; font-weight: 700; color: var(--text); margin-bottom: 14px; padding-left: 26px; position: relative; }
.q-text::before { content: '?'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: var(--blue); color: #fff; border-radius: 50%; font-size: 0.65em; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }

.q-engines-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-engine-block { background: var(--bg); border-radius: var(--r); padding: 14px; }
.q-engine-name { font-family: var(--mono); font-size: 0.7em; font-weight: 700; color: var(--text-f); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.q-status { display: inline-block; font-family: var(--mono); font-size: 0.7em; padding: 3px 8px; border-radius: 20px; margin-bottom: 8px; font-weight: 600; }
.q-status-pills { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.q-status.visible { background: var(--green-dim); color: var(--green); }
.q-status.absent { background: var(--red-dim); color: var(--red); }
.q-status.error { background: var(--amber-dim); color: var(--amber); }
.q-snippet { font-size: 0.82em; color: var(--text-m); line-height: 1.55; margin-bottom: 10px; max-height: 100px; overflow: hidden; position: relative; }
.q-snippet-hl { background: rgba(5,150,105,0.18); color: var(--green); font-weight: 700; padding: 1px 4px; border-radius: 3px; }
.q-snippet::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 26px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.q-sources { font-size: 0.76em; color: var(--text-f); }
.q-sources strong { color: var(--text-m); font-weight: 600; }
.q-source-domain { font-family: var(--mono); display: inline-block; padding: 1px 6px; border-radius: 3px; margin: 2px 4px 2px 0; background: rgba(255,255,255,0.6); border: 1px solid var(--border); font-size: 0.92em; }
.q-source-domain.user { background: var(--green-dim); border-color: rgba(5,150,105,0.3); color: var(--green); font-weight: 600; }

.competitors-card { background: var(--panel); border: 1px solid var(--border-b); border-radius: var(--r-lg); padding: 32px; margin-bottom: 28px; }

.rank-legend { display: flex; flex-direction: column; gap: 6px; background: var(--bg); padding: 12px 14px; border-radius: var(--r); margin-bottom: 20px; }
.rank-legend-item { font-size: 0.82em; color: var(--text-m); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.rank-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: nowrap; }
.rank-row:last-child { border-bottom: none; }
.rank-row.own-main { background: linear-gradient(90deg, rgba(5,150,105,0.08) 0%, rgba(5,150,105,0.02) 60%, transparent 100%); border-left: 4px solid var(--green); padding-left: 14px; margin-left: -14px; margin-right: -14px; padding-right: 14px; }
.rank-row.own-other { background: linear-gradient(90deg, rgba(14,165,233,0.06) 0%, rgba(14,165,233,0.02) 60%, transparent 100%); border-left: 4px solid var(--electric); padding-left: 14px; margin-left: -14px; margin-right: -14px; padding-right: 14px; }

.rank-num { font-family: var(--mono); font-size: 0.95em; font-weight: 700; color: var(--text-f); width: 32px; flex-shrink: 0; text-align: right; }
.rank-row.own-main .rank-num { color: var(--green); }
.rank-row.own-other .rank-num { color: var(--electric); }

.rank-domain-block { flex: 1; min-width: 180px; }
.rank-domain { font-family: var(--mono); font-size: 0.94em; color: var(--text); font-weight: 500; word-break: break-all; }
.rank-row.own-main .rank-domain { font-weight: 700; color: var(--green); }
.rank-row.own-other .rank-domain { font-weight: 600; color: var(--electric); }
.rank-flag { display: inline-block; font-family: var(--mono); font-size: 0.7em; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 8px; letter-spacing: 0.05em; vertical-align: middle; }
.rank-flag.own { background: var(--green); color: #fff; }
.rank-flag.discovered { background: var(--electric); color: #fff; }
.rank-domain-note { font-size: 0.75em; color: var(--text-f); margin-top: 4px; font-style: italic; }

.rank-stats { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; min-width: 0; }
.rank-pill { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 0.75em; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.rank-pill.mention { background: rgba(217,119,6,0.12); color: var(--amber); border: 1px solid rgba(217,119,6,0.3); }
.rank-pill.citation { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(23,92,211,0.2); }
/* Versenytárs sorokban a pillek tompábbak, hogy ne kiabáljanak ugyanúgy mint a sajátnál */
.rank-row:not(.own-main):not(.own-other) .rank-pill.mention { background: rgba(100,116,139,0.10); color: var(--text-f); border-color: rgba(100,116,139,0.25); }
.rank-row:not(.own-main):not(.own-other) .rank-pill.citation { background: rgba(100,116,139,0.06); color: var(--text-f); border-color: rgba(100,116,139,0.18); }

.rank-score { font-family: var(--mono); text-align: right; min-width: 70px; flex-shrink: 0; }
.rank-score strong { font-size: 1.4em; color: var(--text); font-weight: 700; line-height: 1; }
.rank-row.own-main .rank-score strong { color: var(--green); }
.rank-row.own-other .rank-score strong { color: var(--electric); }
.rank-score-label { font-size: 0.7em; color: var(--text-f); display: block; margin-top: 2px; letter-spacing: 0.05em; }

.own-row-note { font-size: 0.85em; color: var(--text-m); background: rgba(14,165,233,0.08); border-left: 3px solid var(--electric); padding: 10px 14px; border-radius: 6px; line-height: 1.55; }
.own-row-note strong { color: var(--text); }
.competitor-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.competitor-row:last-child { border-bottom: none; }
.competitor-rank { font-family: var(--mono); font-size: 0.85em; font-weight: 700; color: var(--text-f); width: 28px; }
.competitor-domain { font-family: var(--mono); font-size: 0.92em; flex: 1; color: var(--text); }
.competitor-count { font-family: var(--mono); font-size: 0.82em; color: var(--text-m); }
.competitor-count strong { color: var(--blue); font-weight: 700; }

.javaslatok-card { background: var(--panel); border: 1px solid var(--border-b); border-radius: var(--r-lg); padding: 32px; margin-bottom: 28px; }
.jav-title { font-size: 1em; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.jav-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.jav-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9em; color: var(--text-m); line-height: 1.55; }
.jav-num { font-family: var(--mono); font-size: 0.75em; font-weight: 700; color: var(--blue); background: var(--blue-dim); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

.audit-card { background: var(--panel); border: 1px solid var(--border-b); border-radius: var(--r-lg); padding: 32px; margin-bottom: 28px; }
.audit-title { font-size: 1.05em; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.audit-title svg { color: var(--electric); }
.audit-sub { font-size: 0.88em; color: var(--text-f); margin-bottom: 24px; }
.audit-dims { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.audit-dim { padding-left: 16px; border-left: 3px solid var(--blue-dim); }
.audit-dim-name { font-family: var(--mono); font-size: 0.72em; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.audit-dim-text { font-size: 0.92em; color: var(--text-m); line-height: 1.6; }
.audit-recs { background: linear-gradient(135deg, rgba(14,165,233,0.06) 0%, rgba(23,92,211,0.04) 100%); border: 1px solid rgba(14,165,233,0.18); border-radius: var(--r); padding: 22px; margin-top: 8px; }
.audit-recs-title { font-size: 0.9em; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.audit-recs-title svg { color: var(--amber); }
.audit-rec-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9em; color: var(--text-m); line-height: 1.55; margin-bottom: 10px; }
.audit-rec-item:last-child { margin-bottom: 0; }
.audit-rec-num { font-family: var(--mono); font-size: 0.7em; font-weight: 700; color: var(--electric); background: rgba(14,165,233,0.12); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

.cta-box { background: linear-gradient(135deg, #175cd3 0%, #0ea5e9 100%); border-radius: var(--r-lg); padding: 40px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.08) 0%, transparent 60%); pointer-events: none; }
.cta-label { font-family: var(--mono); font-size: 0.72em; color: rgba(255,255,255,0.7); letter-spacing: 0.1em; margin-bottom: 14px; position: relative; }
.cta-label strong { color: #fff; }
.cta-title { font-size: 1.5em; font-weight: 800; color: #fff; margin-bottom: 14px; position: relative; line-height: 1.3; }
.cta-sub { font-size: 1em; color: rgba(255,255,255,0.85); margin-bottom: 24px; position: relative; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.55; }
.cta-features { display: flex; flex-direction: column; gap: 10px; margin: 0 auto 32px; max-width: 580px; text-align: left; position: relative; }
.cta-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92em; color: rgba(255,255,255,0.92); line-height: 1.5; }
.cta-feature-icon { flex-shrink: 0; width: 20px; height: 20px; color: #7dd3fc; margin-top: 2px; }
.cta-feature strong { color: #fff; font-weight: 700; }
.cta-feature em { font-style: normal; font-family: var(--mono); font-size: 0.85em; background: rgba(255,255,255,0.15); padding: 1px 6px; border-radius: 4px; color: #e0f2fe; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; margin-bottom: 8px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--blue); font-weight: 700; font-size: 0.95em; padding: 13px 24px; border-radius: var(--r); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-btn-tel { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.cta-btn-tel:hover { background: rgba(255,255,255,0.2); }
.cta-btn svg { width: 16px; height: 16px; }
.cta-phone-text { font-family: var(--mono); font-size: 0.85em; color: rgba(255,255,255,0.7); margin-top: 14px; position: relative; }
.cta-phone-text a { color: #fff; text-decoration: none; font-weight: 600; }

.note-banner { font-size: 1em; color: var(--text); background: linear-gradient(135deg, rgba(217,119,6,0.08) 0%, rgba(217,119,6,0.03) 100%); border: 1px solid rgba(217,119,6,0.25); border-left: 4px solid var(--amber); padding: 18px 22px; border-radius: var(--r); margin-top: 36px; margin-bottom: 28px; line-height: 1.6; }
.note-banner strong { color: var(--amber); font-weight: 700; }

.intro-banner { font-size: 13px; color: var(--text-m); background: linear-gradient(135deg, rgba(23,92,211,0.06) 0%, rgba(14,165,233,0.04) 100%); border: 1px solid rgba(23,92,211,0.18); border-left: 4px solid var(--blue); padding: 18px 22px; border-radius: var(--r); line-height: 1.6; }
.intro-banner strong { color: var(--text); font-weight: 700; }
.intro-banner p { margin-bottom: 10px; }
.intro-banner p:first-child { font-size: 16px; }
.intro-banner p:last-child { margin-bottom: 0; }
.intro-banner .intro-trigger { font-size: 16px; color: var(--amber); margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(217,119,6,0.2); }
.intro-banner .intro-trigger strong { color: var(--amber); font-weight: 800; }

.intro-section { padding: 36px 0 36px; }

.how-section { padding: 0 0 36px; }
.how-title { font-size: 1.4em; font-weight: 800; margin-bottom: 8px; text-align: center; background: linear-gradient(135deg, var(--blue) 0%, var(--electric) 50%, var(--green) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.how-sub { font-size: 0.95em; color: var(--text-m); text-align: center; margin-bottom: 36px; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.how-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--r);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.how-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(23,92,211,0.10); }
.how-card:nth-child(1) { border-top-color: var(--blue); }
.how-card:nth-child(2) { border-top-color: var(--electric); }
.how-card:nth-child(3) { border-top-color: #06b6d4; }
.how-card:nth-child(4) { border-top-color: var(--green); }
.how-card:nth-child(5) { border-top-color: var(--amber); }
.how-card:nth-child(6) { border-top-color: #dc2626; }

.how-num {
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 12px;
  display: inline-block;
  margin-bottom: 14px;
  color: #fff;
}
.how-card:nth-child(1) .how-num { background: var(--blue); }
.how-card:nth-child(2) .how-num { background: var(--electric); }
.how-card:nth-child(3) .how-num { background: #06b6d4; }
.how-card:nth-child(4) .how-num { background: var(--green); }
.how-card:nth-child(5) .how-num { background: var(--amber); }
.how-card:nth-child(6) .how-num { background: #dc2626; }

.how-name { font-size: 0.95em; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.how-desc { font-size: 0.82em; color: var(--text-m); line-height: 1.55; }

.site-footer { background: #0f172a; border-top: 1px solid rgba(255,255,255,0.06); padding: 28px 0; text-align: center; }
.site-footer p { font-family: var(--mono); font-size: 0.78em; color: #64748b; margin-bottom: 4px; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer strong { color: var(--electric); }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .result-header { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px; }
  .engine-grid { grid-template-columns: 1fr; }
  .q-engines-row { grid-template-columns: 1fr; }
  .brand-check-engines { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .competitors-card, .q-section, .brand-check-section, .javaslatok-card, .audit-card, .cta-box { padding: 20px; }

  /* "Hogy működik" kártyák mobilon: 1 oszlop, kisebb padding, kisebb betű */
  .how-grid { grid-template-columns: 1fr; gap: 12px; }
  .how-card { padding: 18px 18px; text-align: left; }
  .how-name { font-size: 1.02em; margin-bottom: 6px; }
  .how-desc { font-size: 0.88em; line-height: 1.45; }
  .how-num { margin-bottom: 10px; }
  .how-title { font-size: 1.2em; }
  .how-sub { font-size: 0.88em; margin-bottom: 24px; }

  /* Rangsor mobilon: 2-sávos elrendezés */
  .rank-row {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px 0;
  }
  .rank-row.own-main, .rank-row.own-other {
    padding-left: 10px;
    margin-left: -10px;
    margin-right: -10px;
    padding-right: 10px;
  }
  .rank-num { width: 24px; font-size: 0.85em; }
  .rank-domain-block { flex: 1 1 calc(100% - 38px); min-width: 0; }
  .rank-domain { font-size: 0.86em; }
  .rank-flag { font-size: 0.62em; padding: 1px 6px; }
  .rank-stats { flex: 1 1 100%; padding-left: 30px; }
  .rank-pill { font-size: 0.7em; padding: 3px 8px; }
  .rank-score { text-align: right; min-width: auto; flex: 0 0 auto; padding-left: 30px; }
  .rank-score strong { font-size: 1.1em; }
  .rank-legend-item { font-size: 0.76em; }

  /* Forrás chip-ek mobil méretek — kisebb betű, jobban tördelődik */
  .q-source-domain {
    font-size: 0.78em;
    word-break: break-all;
    max-width: 100%;
  }
  .q-card { padding: 16px; }
  .q-engine-block { padding: 12px; }
  .q-engines-row { gap: 10px; }
  .q-text { font-size: 0.92em; padding-left: 24px; line-height: 1.4; word-break: normal; overflow-wrap: break-word; }
  .q-text::before { width: 16px; height: 16px; font-size: 0.6em; }

  /* Tagline ne legyen túl nagy mobilon */
  .hero-tagline { font-size: 1.3em; margin-bottom: 22px; line-height: 1.25; }

  /* CTA finomítás mobilon */
  .cta-features { max-width: 100%; }
  .cta-feature { font-size: 0.88em; }
  .cta-title { font-size: 1.25em; }
  .cta-buttons { flex-direction: column; gap: 10px; }
  .cta-btn, .cta-btn-tel { width: 100%; justify-content: center; }

  /* Engine kártyák kisebb betű */
  .engine-score { font-size: 2em; }
  .engine-desc { font-size: 0.82em; }

  /* Audit kártya finomítás */
  .audit-recs { padding: 16px; }
  .audit-dim-text { font-size: 0.88em; }
}

/* ── PDF LETÖLTÉS GOMB ── */
.pdf-download-bar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.pdf-download-bar.middle { justify-content: center; margin: 24px 0; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.82em; font-weight: 700; letter-spacing: 0.04em;
  background: #dc2626; border: 1px solid #dc2626; color: #fff;
  padding: 11px 18px; border-radius: 8px; cursor: pointer; transition: all 0.15s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(220,38,38,0.2);
}
.pdf-btn:hover { background: #b91c1c; border-color: #b91c1c; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(220,38,38,0.35); }
.pdf-btn svg { width: 17px; height: 17px; }

/* ── PRINT STYLESHEET (PDF mentés) ── */
@media print {
  @page { size: A4; margin: 1.5cm 1.2cm; }
  body { background: #fff !important; color: #111 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdf-download-bar, .site-header, .hero, .form-section, .cta-buttons, .loading-overlay, .footer-cta, footer { display: none !important; }
  .result-section, section { background: #fff !important; padding: 0 !important; }
  .wrap { max-width: 100% !important; padding: 0 !important; }
  .result-header { page-break-inside: avoid; }
  .competitors-card, .q-section, .javaslatok-card, .audit-card, .cta-box { page-break-inside: avoid; box-shadow: none !important; }
  .cta-box { color: #fff !important; }
  h1, h2, h3, h4 { page-break-after: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
  /* AI-láthatóság karika színeit megtartjuk */
  .score-circle, .score-num, .result-label { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Élő haladás */
.loading-progress { margin-top: 14px; font-family: var(--mono, monospace); font-size: .9em; color: #fff; min-height: 1.4em; }
.loading-bar { width: min(420px, 80vw); height: 6px; margin: 12px auto 0; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.loading-bar > div { height: 100%; width: 0; background: #2e7cf6; transition: width .4s ease; }
.loading-sub { color: rgba(255,255,255,.45); font-size: .85em; }
.d-none { display: none !important; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bg-back { text-align: center; margin-top: 30px; }
.bg-back a { font-family: var(--mono); font-size: .82em; color: var(--text-f); text-decoration: none; }