/* ===== Home page ===== */
:root {
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-tint: #f6f7f9;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --g1: #16a34a;
  --g2: #2563eb;
  --g3: #d97706;
  --g4: #dc2626;
  --g0: #9ca3af;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn:hover { background: var(--brand-dark); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.header-nav a:not(.btn):hover { color: var(--ink); }

/* ===== Hero ===== */
.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 34em;
}

.search { display: flex; gap: 10px; max-width: 520px; }
.search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.05rem;
  padding: 14px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.search-center { margin: 0 auto; }
.search-alt { margin-top: 12px; font-size: 0.92rem; color: var(--ink-faint); }

.facts {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.facts strong { color: var(--ink); }

/* ===== Hero preview card ===== */
.preview { margin: 0; }
.preview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgba(17, 24, 39, 0.25);
  padding: 20px;
}
.preview-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.pin {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--ink);
  position: relative;
}
.pin::after {
  content: ''; position: absolute; inset: 11px;
  border-radius: 50%; background: #fff;
}
.preview-title { font-weight: 700; }
.preview-sub { font-size: 0.85rem; color: var(--ink-faint); }
.preview-list { list-style: none; }
.preview-list li {
  display: grid;
  grid-template-columns: 1fr auto 58px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.92rem;
}
.preview-list li:last-child { border-bottom: 0; }
.pl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-dist { text-align: right; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.preview figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}
.badge.g1 { background: var(--g1); }
.badge.g2 { background: var(--g2); }
.badge.g3 { background: var(--g3); }
.badge.g4 { background: var(--g4); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-tint); }
.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.section-lead { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 40px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }

/* Grades */
.grades { list-style: none; margin: 28px 0 20px; }
.grades li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.grades strong { color: var(--ink); margin-right: 6px; }
.dot {
  width: 14px; height: 14px; flex-shrink: 0;
  border-radius: 50%;
  position: relative; top: 2px;
}
.dot.g1 { background: var(--g1); }
.dot.g2 { background: var(--g2); }
.dot.g3 { background: var(--g3); }
.dot.g4 { background: var(--g4); }
.dot.g0 { background: var(--g0); }
.note { font-size: 0.92rem; color: var(--ink-faint); }

/* FAQ */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 12px;
}
details:first-of-type { margin-top: 28px; }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 20px;
  list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--ink-faint); font-weight: 400; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { padding: 0 20px 18px; color: var(--ink-soft); }

/* CTA */
.cta .section-lead { margin-bottom: 28px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.footer-inner { display: flex; gap: 24px; align-items: baseline; justify-content: space-between; }
.footer-inner p { max-width: 640px; text-align: right; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .header-nav a:not(.btn) { display: none; }
  .section { padding: 56px 0; }
  .features { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .footer-inner p { text-align: left; }
}
