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

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e7ebf2;
  --text: #162033;
  --muted: #667085;
  --brand: #5b5ce2;
  --success: #15803d;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(22, 32, 51, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 21px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
}

.site-nav,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.language-switcher {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line);
}

.language-switcher .is-active {
  color: var(--text);
  font-weight: 800;
}

.site-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.hero {
  margin-bottom: 34px;
}

.hero--center {
  text-align: center;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero h1 {
  margin: 12px 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef0ff;
  color: var(--brand);
  font-weight: 900;
}

.panel h2 {
  margin: 18px 0 8px;
}

.panel p { color: var(--muted); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.tool-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  background: #fff;
}

.tool-card strong,
.tool-card small { display: block; }

.tool-card small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.tool-card--locked { box-shadow: inset 0 0 0 1px #f0f1ff; }

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.diagnostic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.diagnostic-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status--ok {
  color: var(--success);
  background: #ecfdf3;
}

.status--missing {
  color: var(--danger);
  background: #fef3f2;
}

.diagnostic-card dl {
  margin: 18px 0 0;
}

.diagnostic-card dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.diagnostic-card dt { color: var(--muted); }
.diagnostic-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  background: #101828;
  color: #fff;
}

.site-footer__inner {
  align-items: flex-start;
  padding: 34px 0;
}

.site-footer p {
  color: #98a2b3;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #d0d5dd;
  text-decoration: none;
}

.processing-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 40, .55);
}

.processing-modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  text-align: center;
}

.processing-modal__brand {
  font-weight: 900;
  color: var(--brand);
}

.processing-modal h2 { margin-bottom: 6px; }
.processing-modal p { color: var(--muted); }

.ad-slot {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  margin: 18px 0;
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  color: var(--muted);
}

.ad-slot span {
  font-size: 12px;
}

.processing-progress {
  height: 8px;
  background: #eef2f6;
  border-radius: 999px;
  overflow: hidden;
}

.processing-progress i {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--brand);
  transition: width .3s ease;
}

.processing-percent {
  margin-top: 10px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 820px) {
  .tool-grid,
  .diagnostics-grid { grid-template-columns: 1fr; }

  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 28px, 1180px);
  }

  .site-nav {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-main {
    width: min(100% - 28px, 1180px);
    padding-top: 36px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .panel { padding: 22px; }
}

.tool-directory { padding-top: 34px; }
.tool-category + .tool-category { margin-top: 30px; }
.tool-category h3 { margin: 0 0 14px; }
.tool-card--coming-soon { min-height: 78px; display: flex; align-items: center; }
.tool-card--coming-soon strong { display: block; }
.tool-card--coming-soon small { display: block; margin-top: 6px; color: var(--muted); }
.tool-category { margin-top: 34px; }
.tool-category h3 { margin: 0 0 14px; }
.tool-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22,32,51,.10); border-color: #d9ddff; }
.tool-card small { color: var(--brand); }

/* App shell: keeps the footer at the bottom on short tool pages. */
html,body{min-height:100%;}
body{min-height:100vh;display:flex;flex-direction:column;}
.site-main{flex:1 0 auto;width:min(1180px,calc(100% - 40px));}
.site-footer{flex:0 0 auto;margin-top:auto;}

.category-heading,.group-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.category-heading a{font-size:13px;font-weight:800;color:var(--brand);text-decoration:none}.tool-group{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.group-heading h4{margin:0 0 14px;font-size:18px}.tool-category{margin-top:34px}


.language-select{border:1px solid #dbe2f0;border-radius:10px;background:#fff;color:inherit;padding:7px 28px 7px 9px;font:inherit;cursor:pointer;min-width:70px}.language-select:focus{outline:2px solid #6c63ff;outline-offset:2px}

/* Global footer / legal pages */
.site-body { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
.site-ad-wrap { background: var(--bg); }
.site-ad-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-footer { margin-top: 28px; }
.site-footer__inner { min-height: auto; padding: 42px 0 30px; display: grid; grid-template-columns: 1.5fr repeat(3, minmax(150px, 1fr)); gap: 28px; }
.site-footer__brand p { margin: 8px 0; }
.site-footer__brand small { display: block; color: #98a2b3; line-height: 1.7; }
.site-footer__group { display: grid; align-content: start; gap: 9px; }
.site-footer__group strong { margin-bottom: 4px; }
.site-footer__bottom { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 16px 0 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; color: #98a2b3; font-size: 13px; }
.site-ad-inner .ad-slot { margin: 22px 0; min-height: 90px; }
.info-page { max-width: 900px; margin: 0 auto; }
.info-page .panel { margin-top: 22px; }
.info-page h2 { margin-top: 0; }
.info-page h3 { margin-top: 28px; }
.info-page p, .info-page li { color: var(--muted); line-height: 1.85; }
.info-page ul { padding-inline-start: 22px; }
.info-page .legal-note { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8f9fd; color: var(--muted); }
.info-page a { color: var(--brand); }
@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
}
