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

:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --border: #d0d7de;
  --border-sub: #e8ecf0;
  --text: #1f2328;
  --text-2: #656d76;
  --text-3: #adb5bd;
  --green: #1a7f37;
  --green-dim: rgba(26,127,55,0.07);
  --green-border: rgba(26,127,55,0.2);
  --red: #cf222e;
  --red-dim: rgba(207,34,46,0.06);
  --red-border: rgba(207,34,46,0.18);
  --yellow: #9a6700;
  --yellow-dim: rgba(154,103,0,0.07);
  --yellow-border: rgba(154,103,0,0.2);
  --accent: #0969da;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(246,248,250,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-name { letter-spacing: -0.01em; }

.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.1s;
}
.nav a:hover { color: var(--text); }

@media (max-width: 640px) { .nav { display: none; } }

.btn-nav {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  transition: border-color 0.1s, background 0.1s;
}
.btn-nav:hover { border-color: #444c56; background: var(--surface); }

/* ── HERO ── */
.hero {
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 64px;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 10px;
  width: fit-content;
}
.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(26,127,55,0.4);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero > .hero-inner > p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.65;
}
.hero p strong { color: var(--text); font-weight: 500; }

/* Checker */
.checker-wrap {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checker-input-row {
  display: flex;
  gap: 8px;
}
@media (max-width: 480px) { .checker-input-row { flex-direction: column; } }

.input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 11px;
  color: var(--text-3);
  pointer-events: none;
  flex-shrink: 0;
}
.input-group input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.1s;
}
.input-group input::placeholder { color: var(--text-3); }
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88,166,255,0.1); }

.eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.1s;
}
.eye-btn:hover { color: var(--text); }

.btn-check {
  height: 38px;
  padding: 0 18px;
  background: var(--green);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity 0.1s;
}
.btn-check:hover { opacity: 0.85; }
.btn-check:disabled { opacity: 0.4; cursor: not-allowed; }

.spin { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.checker-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ── RESULT ── */
#result { animation: fadein 0.15s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } }

.result-leaked, .result-safe {
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
}
.result-leaked { background: var(--red-dim); border: 1px solid var(--red-border); }
.result-safe   { background: var(--green-dim); border: 1px solid var(--green-border); }

.result-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.result-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.result-leaked .result-title { color: var(--red); }
.result-safe .result-title   { color: var(--green); }
.result-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.result-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chip {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--red-border);
  color: var(--text-2);
  background: rgba(248,81,73,0.04);
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 40px;
}
.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 11.5px;
  color: var(--text-2);
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}
@media (max-width: 600px) {
  .stat { padding: 8px 16px; }
  .stat-sep { display: none; }
}

/* ── SECTION ── */
.section {
  padding: 56px 24px;
  border-bottom: 1px solid var(--border);
}
.section-alt { background: var(--surface); }

.section-wrap { max-width: 900px; margin: 0 auto; }

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.section-top h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-top p {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
}
.link-all {
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.link-all:hover { text-decoration: underline; }

/* ── TABLE ── */
.table-container {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
.table thead tr { border-bottom: 1px solid var(--border); }
.table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
}
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-sub);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:not(.expand-row):hover { background: rgba(255,255,255,0.02); }

.row-toggle { cursor: pointer; }

.service-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-logo {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
}
.svc-logo-img {
  padding: 0;
  overflow: hidden;
}
.svc-logo-img img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.logo-fb-inline {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  border-radius: 6px;
}
.svc-name { font-size: 13.5px; font-weight: 500; color: var(--text); }
.svc-sub { font-size: 11.5px; color: var(--text-2); margin-top: 1px; }
.svc-expand-hint { color: var(--accent); }

.td-2 { font-size: 13px; color: var(--text-2); }
.td-num { font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.td-end { display: flex; align-items: center; gap: 8px; }

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.badge.red    { background: var(--red-dim); color: var(--red); border: 1px solid var(--red-border); }
.badge.yellow { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow-border); }

.chevron {
  color: var(--text-2);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.chevron.open { transform: rotate(180deg); }

/* ── EXPAND PANEL ── */
.expand-row td { padding: 0; background: rgba(255,255,255,0.01); }
.expand-panel {
  padding: 20px 20px 20px 52px;
  border-top: 1px solid var(--border-sub);
  animation: fadein 0.15s ease;
}
.expand-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.school-grid { display: flex; flex-direction: column; }
.school-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-sub);
}
.school-row:last-child { border-bottom: none; }

.school-logo-box {
  width: 30px; height: 30px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.school-logo-box img { width: 30px; height: 30px; object-fit: contain; display: block; }
.logo-fb {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: white;
  border-radius: 6px;
}

.school-info { flex: 1; min-width: 0; }
.school-name { font-size: 13px; font-weight: 500; color: var(--text); }
.school-loc  { font-size: 11.5px; color: var(--text-2); margin-top: 1px; }

.school-data { font-size: 12px; color: var(--text-2); flex: 1; min-width: 0; }

.school-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .school-data { display: none; }
  .expand-panel { padding-left: 16px; }
}

/* ── HOW IT WORKS ── */
.section-alt h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; gap: 16px; } }

.step { display: flex; gap: 14px; }
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}
.step-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.step-text { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-right: auto;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-3); }

@media (max-width: 640px) {
  .table th:nth-child(4), .table td:nth-child(4),
  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
}
