/* ISP Compare - Green Purwa Residence, Jagakarsa
   Design read: decision-support tool, trust-first, data-dense.
   One accent (emerald), one radius system, light/dark via prefers-color-scheme.
   No em-dashes anywhere. */

:root {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --ink: #18181b;
  --ink-soft: #52525b;
  --ink-faint: #71717a;
  --line: #e4e4e7;
  --accent: #059669;
  --accent-ink: #ffffff;
  --warn: #b45309;
  --bad: #b91c1c;
  --ok: #047857;
  --radius: 12px;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Geist", "Outfit", "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --bg-elev: #141417;
    --ink: #f4f4f5;
    --ink-soft: #a1a1aa;
    --ink-faint: #71717a;
    --line: #27272a;
    --accent: #10b981;
    --accent-ink: #052e1c;
    --warn: #f59e0b;
    --bad: #f87171;
    --ok: #34d399;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.nav-brand { font-weight: 700; letter-spacing: -0.01em; }
.nav-loc { color: var(--ink-soft); }
.nav-priority {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.hero-meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Sections ---------- */
main > section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}
section h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-note {
  color: var(--ink-soft);
  max-width: 65ch;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ---------- Verdicts ---------- */
.verdict-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.verdict-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verdict-card .v-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.verdict-card h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.verdict-card .v-score {
  font-family: var(--mono);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.v-score.good { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.v-score.mid { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.v-score.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.verdict-card .v-line { font-size: 0.9rem; color: var(--ink-soft); }
.verdict-card .v-verdict { font-size: 0.95rem; }
.verdict-card .v-src {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 900px; }
thead th {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
td.isp-name { font-weight: 600; white-space: nowrap; }
td.num { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}
.tag.good { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.tag.mid { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); }
.tag.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); }
.tag.unknown { border-color: var(--line); color: var(--ink-faint); }

/* ---------- Detail cards ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.detail-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-card h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.detail-card .d-sub { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.detail-card h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-top: 6px;
}
.detail-card p, .detail-card li { font-size: 0.92rem; color: var(--ink-soft); }
.detail-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.detail-card li { padding-left: 14px; position: relative; }
.detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.detail-card .d-verdict {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 0.95rem;
  color: var(--ink);
}
.detail-card .d-sources {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-card .d-sources a { color: var(--ink-faint); text-decoration: none; }
.detail-card .d-sources a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Method ---------- */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}
.method-grid h3 { font-size: 1rem; margin-bottom: 10px; }
.method-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.method-grid li {
  padding-left: 16px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.method-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.method-grid p { color: var(--ink-soft); font-size: 0.92rem; max-width: 55ch; }

/* ---------- Local leads ---------- */
.lead-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.lead-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lead-item h3 { font-size: 1rem; letter-spacing: -0.01em; }
.lead-item p { font-size: 0.88rem; color: var(--ink-soft); }
.lead-item a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead-item a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
}
.footer p {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-loc { display: none; }
  .hero { padding: 48px 20px 32px; }
  main > section { padding: 40px 20px; }
  .method-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-grid { grid-template-columns: 1fr; }
  .verdict-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
