/* Pilotwell – Google Workspace / Material 3 ihletésű dizájnrendszer */
:root {
  --font: "Google Sans", "Google Sans Text", Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --blue: #0b57d0;
  --blue-hover: #0a4fbf;
  --blue-press: #0842a0;
  --blue-container: #d3e3fd;
  --on-blue-container: #041e49;

  --surface: #ffffff;
  --surface-1: #f8fafd;
  --surface-2: #f0f4f9;
  --surface-3: #e9eef6;
  --text: #1f1f1f;
  --text-2: #444746;
  --text-3: #5f6368;
  --outline: #747775;
  --outline-2: #c4c7c5;
  --divider: #e3e3e3;

  --red: #b3261e;
  --red-icon: #d93025;
  --red-bg: #fdeceb;
  --red-border: #f5c2be;
  --amber: #7a4a00;
  --amber-icon: #e37400;
  --amber-bg: #fef7e0;
  --amber-border: #fbe2a2;
  --green: #146c2e;
  --green-icon: #1e8e3e;
  --green-bg: #e6f4ea;
  --green-border: #bfe3c9;
  --purple: #7627bb;
  --purple-bg: #f3e8fd;

  --ai-grad: linear-gradient(90deg, #4285f4 0%, #8f6ee6 50%, #e26a8d 100%);

  --shadow-1: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow-2: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  --shadow-3: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);

  --r-xl: 28px;
  --r-l: 20px;
  --r-m: 12px;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --greti: 196px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue); }
button { font: inherit; }

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  flex: none;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ Gombok */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-filled { background: var(--blue); color: #fff; }
.btn-filled:hover { background: var(--blue-hover); box-shadow: var(--shadow-1); }
.btn-filled:active { background: var(--blue-press); }
.btn-filled[disabled] { background: #1f1f1f1f; color: #1f1f1f61; box-shadow: none; cursor: default; }
.btn-outlined { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--outline-2); }
.btn-outlined:hover { background: #0b57d00f; }
.btn-tonal { background: var(--blue-container); color: var(--on-blue-container); }
.btn-tonal:hover { box-shadow: var(--shadow-1); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .ms { font-size: 24px; }

/* ------------------------------------------------------------------ Kapszula navbar */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  position: relative;
  pointer-events: auto;
  width: 80%;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--shadow-2);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.scrolled { background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-3); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-word {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links .nav-cta-mobile { display: none; }

.new-word {
  margin: 0 0.26em; /* a flex link elnyeli a szóközöket */
  font-weight: 700;
  letter-spacing: 0.3px;
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-cta { flex: none; }
.nav-toggle { display: none; flex: none; }

@media (max-width: 1180px) {
  .nav { padding: 0 8px 0 20px; }
  .nav-toggle { display: inline-grid; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: var(--r-xl);
    background: #fff;
    box-shadow: var(--shadow-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
  }
  .nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }
  .nav-links a { width: 100%; height: 52px; padding: 0 20px; font-size: 16px; }
}
@media (max-width: 560px) {
  .nav { padding: 0 6px 0 16px; height: 58px; }
  .brand-word { font-size: 19px; }
  .brand-mark { width: 24px; height: 24px; }
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .nav-links .nav-cta-mobile { display: block; padding-top: 6px; }
  .nav-links .nav-cta-mobile a { justify-content: center; background: var(--blue); color: #fff; }
}

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: 168px 24px 72px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 48% at 0% 92%, rgba(248, 213, 236, 0.75), transparent 72%),
    radial-gradient(34% 44% at 100% 80%, rgba(211, 227, 253, 0.85), transparent 72%),
    radial-gradient(32% 34% at 52% 108%, rgba(232, 222, 250, 0.7), transparent 72%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.eyebrow .ms {
  font-size: 18px;
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  max-width: 900px;
  margin: 24px auto 0;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.grad {
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ Elemző mező + Greti */
.analyze {
  max-width: 780px;
  margin: 176px auto 0;
  text-align: left;
}
.field-wrap { position: relative; }

.field {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 72px;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-2), inset 0 0 0 1px transparent;
  transition: box-shadow 0.2s var(--ease);
}
.field:hover { box-shadow: var(--shadow-3); }
.field:focus-within { box-shadow: var(--shadow-3), inset 0 0 0 2px var(--blue); }
.field.invalid { box-shadow: var(--shadow-2), inset 0 0 0 2px var(--red-icon); }
.field.shake { animation: shake 0.42s var(--ease); }
.field-icon { color: var(--text-3); font-size: 24px; }

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 18px/1 var(--font);
}
.field input::placeholder { color: var(--text-3); }

.btn-analyze {
  height: 56px;
  padding: 0 20px 0 26px;
  font-size: 16px;
}
.btn-analyze .ms { font-size: 22px; transition: transform 0.2s var(--ease); }
.btn-analyze:hover .ms { transform: translateX(2px); }
.btn-analyze.loading .ms { animation: spin 1s linear infinite; }

.field-hint {
  min-height: 22px;
  margin: 12px 0 0 28px;
  color: var(--text-3);
  font-size: 14px;
}
.field-hint.error { color: var(--red); }

/* Greti a mező bal felső sarka fölött – a teste alja a mező mögé "bújik" */
.greti {
  position: absolute;
  z-index: 1;
  left: 34px;
  bottom: calc(100% - 40px);
  width: var(--greti);
  height: var(--greti);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.greti svg,
.greti img {
  display: block;
  width: 100%;
  height: 100%;
}

.greti-bubble {
  position: absolute;
  z-index: 3;
  left: calc(34px + var(--greti) - 6px);
  bottom: calc(100% + 64px);
  max-width: min(380px, calc(100% - var(--greti) - 40px));
  padding: 12px 18px 14px;
  border-radius: 22px 22px 22px 6px;
  background: #fff;
  box-shadow: var(--shadow-2);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  transform-origin: 0 100%;
}
.greti-bubble.pop { animation: pop 0.32s var(--ease); }
.greti-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}
.feature-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--outline-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.feature-chips .ms { font-size: 18px; color: var(--blue); }

@media (max-width: 640px) {
  :root { --greti: 140px; }
  .hero { padding-top: 132px; }
  .analyze { margin-top: 136px; }
  .field { height: 60px; padding: 0 6px 0 18px; }
  .field input { font-size: 16px; }
  .field-icon { display: none; }
  .btn-analyze { width: 48px; height: 48px; padding: 0; }
  .btn-analyze .label { display: none; }
  .greti { left: 14px; bottom: calc(100% - 30px); }
  .greti-bubble {
    left: calc(14px + var(--greti) - 12px);
    bottom: calc(100% + 34px);
    max-width: calc(100% - var(--greti) + 4px);
    padding: 10px 14px 12px;
    font-size: 14px;
  }
  .field-hint { margin-left: 18px; }
}

/* ------------------------------------------------------------------ Folyamat */
.progress {
  max-width: 780px;
  margin: 28px auto 0;
  text-align: left;
}
.progress[hidden], .feature-chips[hidden] { display: none; }
.card {
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.progress-card {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 24px;
}
.progress-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  overflow: hidden;
  background: var(--blue-container);
}
.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--ai-grad);
  animation: indeterminate 1.4s var(--ease) infinite;
}
.progress-card.done .progress-bar { display: none; }
.progress-title { font-size: 18px; font-weight: 500; }
.progress-sub { margin-top: 4px; color: var(--text-3); font-size: 14px; word-break: break-all; }

.steps {
  display: grid;
  gap: 4px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  color: var(--text-3);
  font-size: 15px;
  transition: color 0.2s var(--ease);
}
.step .ms { font-size: 22px; color: var(--outline-2); }
.step.active { color: var(--text); font-weight: 500; }
.step.active .ms { color: var(--blue); animation: spin 1s linear infinite; }
.step.done { color: var(--text-2); }
.step.done .ms { color: var(--green-icon); }

.error-card {
  display: flex;
  gap: 16px;
  padding: 24px 28px;
  border-radius: var(--r-xl);
  background: var(--red-bg);
  box-shadow: inset 0 0 0 1px var(--red-border);
  color: var(--red);
}
.error-card .ms { font-size: 28px; color: var(--red-icon); }
.error-card h3 { font-size: 18px; font-weight: 500; color: #601410; }
.error-card p { margin-top: 4px; color: #601410; }

/* ------------------------------------------------------------------ Eredmények */
.results {
  padding: 56px 24px 96px;
  background: var(--surface-1);
  border-top: 1px solid var(--divider);
}
.results-inner { max-width: 1120px; margin: 0 auto; }

.summary { padding: 28px; }
.summary-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
}
/* Az oldal logója: fehér lap, a kép magasságához igazodó szélesség (kerek ikon és széles logó is elfér) */
.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  height: 56px;
  min-width: 56px;
  max-width: 196px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--divider);
}
.logo-tile img { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.summary-title { flex: 1; min-width: 200px; }
.summary-title h2 { font-size: 24px; font-weight: 500; line-height: 1.25; word-break: break-word; }
.summary-title a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 14px;
  text-decoration: none;
  word-break: break-all;
}
.summary-title a:hover { color: var(--blue); text-decoration: underline; }
.summary-title a .ms { font-size: 16px; }

.score-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}
.score {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 16px 16px;
  border-radius: var(--r-l);
  background: var(--surface-1);
}
.ring { position: relative; width: 96px; height: 96px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--surface-3); }
.ring .value { stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 500;
}
.score-label { font-size: 20px; font-weight: 500; }
.score-desc { color: var(--text-3); font-size: 14px; max-width: 170px; line-height: 1.35; }

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--r-l);
  font-size: 14px;
}
.counter strong { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 500; line-height: 1.1; }
.counter .ms { font-size: 24px; }
.counter-error { background: var(--red-bg); color: #601410; }
.counter-error .ms { color: var(--red-icon); }
.counter-warning { background: var(--amber-bg); color: var(--amber); }
.counter-warning .ms { color: var(--amber-icon); }
.counter-pass { background: var(--green-bg); color: var(--green); }
.counter-pass .ms { color: var(--green-icon); }

@media (max-width: 980px) {
  .score-row { grid-template-columns: 1fr 1fr; }
  .counters { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .summary { padding: 20px; }
  .score-row { grid-template-columns: 1fr; gap: 12px; }
  .counters { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .counter { padding: 12px; font-size: 12px; }
  .counter strong { font-size: 24px; }
  .counter .ms { display: none; }
}

/* Kapszula fülek (a Workspace szegmentált sávja alapján) */
.tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 32px auto 28px;
  padding: 6px;
  overflow-x: auto;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-2);
  scrollbar-width: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tab:hover { background: var(--surface-1); color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--red-icon);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.badge.zero { background: var(--green-icon); }
@media (max-width: 600px) {
  .tab { height: 42px; padding: 0 14px; font-size: 15px; }
}

.panel[hidden] { display: none; }
.panel-section + .panel-section { margin-top: 40px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 500;
}
.section-title .count { color: var(--text-3); font-weight: 400; }
.section-lede { margin: -8px 0 16px; color: var(--text-3); }

/* Hibakártyák */
.issues { display: grid; gap: 12px; }
.issue {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r-l);
  background: #fff;
}
.issue-error { background: var(--red-bg); box-shadow: inset 0 0 0 1px var(--red-border); }
.issue-warning { background: #fff; box-shadow: inset 0 0 0 1px var(--amber-border); }
.issue-icon { font-size: 26px; margin-top: 1px; }
.issue-error .issue-icon { color: var(--red-icon); }
.issue-warning .issue-icon { color: var(--amber-icon); }
.issue-body { flex: 1; min-width: 0; }
.issue-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.issue h4 { font-size: 17px; font-weight: 500; line-height: 1.35; }
.issue-error h4 { color: #601410; }
.issue p { margin-top: 6px; color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.issue .fix {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-size: 14px;
}
.issue-warning .fix { background: var(--surface-1); }
.issue .fix .ms { color: var(--blue); font-size: 18px; margin-top: 1px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  flex: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.tag-seo { background: var(--blue-container); color: var(--on-blue-container); }
.tag-tech { background: var(--surface-3); color: var(--text-2); }
.tag-aeo { background: var(--purple-bg); color: var(--purple); }

.empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-l);
  background: var(--green-bg);
  color: var(--green);
}
.empty .ms { font-size: 28px; color: var(--green-icon); }

/* Ellenőrzőlista */
.check-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .check-groups { grid-template-columns: 1fr; } }
.check-card { padding: 8px 0; }
.check-card h3 { padding: 16px 24px 8px; font-size: 18px; font-weight: 500; }
.checks { margin: 0; padding: 0; list-style: none; }
.check {
  display: flex;
  gap: 14px;
  padding: 14px 24px;
  border-top: 1px solid var(--divider);
}
.check:first-child { border-top: 0; }
.check .ms { font-size: 22px; margin-top: 1px; }
.check.pass .ms { color: var(--green-icon); }
.check.warning .ms { color: var(--amber-icon); }
.check.error .ms { color: var(--red-icon); }
.check.info .ms { color: var(--text-3); }
.check-title { font-weight: 500; }
.check-detail { margin-top: 2px; color: var(--text-3); font-size: 14px; overflow-wrap: anywhere; }
.check-fix { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.check-fix b { font-weight: 500; color: var(--blue); }

/* AI-robotok táblázat */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data th,
.data td {
  padding: 14px 20px;
  border-top: 1px solid var(--divider);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.data thead th {
  border-top: 0;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}
.data td.num, .data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data .you { background: #e8f0fe80; }
.data .best { color: var(--green); font-weight: 600; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.pill .ms { font-size: 16px; }
.pill-ok { background: var(--green-bg); color: var(--green); }
.pill-bad { background: var(--red-bg); color: var(--red); }
.pill-muted { background: var(--surface-2); color: var(--text-2); }

/* Versenytársak */
.comp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.comp {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}
.comp-head { display: flex; align-items: center; gap: 12px; }
.comp-head .avatar { width: 40px; height: 40px; font-size: 17px; }
.comp-head .logo-tile { height: 44px; min-width: 44px; max-width: 150px; padding: 6px; border-radius: 12px; }
.comp-head .logo-tile img { height: 32px; max-width: 138px; }
.comp-name { font-weight: 500; font-size: 17px; line-height: 1.3; }
.comp-host { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 14px; text-decoration: none; }
.comp-host:hover { color: var(--blue); text-decoration: underline; }
.comp-host .ms { font-size: 15px; }
.comp-reason { color: var(--text-2); font-size: 14px; flex: 1; }
.comp-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.mini {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-2);
}
.mini b { font-size: 16px; font-weight: 600; color: var(--text); }

.gap-list { display: grid; gap: 10px; }
.gap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-l);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--outline-2);
}
.gap .ms { color: var(--red-icon); font-size: 22px; }
.gap p { color: var(--text-3); font-size: 14px; margin-top: 2px; }

.notice {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.notice > .ms { font-size: 26px; color: var(--blue); }
.notice h3 { font-size: 18px; font-weight: 500; }
.notice p { margin-top: 6px; color: var(--text-2); }
.notice code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}
.search-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-ideas a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--outline-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.search-ideas a:hover { background: var(--surface-1); color: var(--blue); }
.search-ideas .ms { font-size: 18px; }

/* ------------------------------------------------------------------ Lábléc */
.footer {
  padding: 32px 24px 40px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
}

/* ------------------------------------------------------------------ Animációk */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0.92) translateY(4px); }
  100% { opacity: 1; transform: none; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 0.5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
