:root {
  --ink: #1c2433;
  --muted: #5b6578;
  --paper: #e9eef5;
  --sheet: #fff;
  --line: #d7deea;
  --nyx: #252636;
  --soft: #eef1f6;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
h1, h2, h3 { letter-spacing: -.04em; line-height: 1.12; font-weight: 650; }
h1 { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 16px; }
h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.card-title { font-size: 20px; margin: 0 0 8px; }
p { color: var(--muted); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: #fff; border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.logo span { width: 32px; height: 32px; border-radius: 10px; background: var(--nyx) url("/favicon.svg") center/32px no-repeat; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.top nav a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  background: var(--nyx) !important; color: #fff !important;
  padding: 8px 12px; border-radius: 8px; font-weight: 600 !important;
}

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero, .section { padding: clamp(40px, 7vw, 88px) 0; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 18px; max-width: 560px; }
.note {
  display: inline-block; margin-top: 16px; padding: 7px 11px;
  background: var(--soft); border-radius: 999px; font-size: 13px; color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent;
}
.btn-dark { background: var(--nyx); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: 0 10px 40px rgba(28,36,51,.06);
}
.price { font-size: 40px; letter-spacing: -.04em; margin: 8px 0; }
.muted { color: var(--muted); font-size: 14px; }
.warn { font-size: 13px; color: var(--muted); background: var(--soft); padding: 10px 12px; border-radius: 10px; }

.grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.tile p:last-child { margin-bottom: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form textarea, .form select {
  min-height: 42px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font: 15px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #fff;
}
.form textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

.ok { background: #eef4ee; color: #35503a; padding: 12px 14px; border-radius: 10px; }
.err { background: #f6f1f1; color: #6b3030; padding: 12px 14px; border-radius: 10px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose ul { color: var(--muted); padding-left: 18px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.finding { border-left: 3px solid var(--nyx); padding: 12px 14px; background: #fff; border-radius: 0 12px 12px 0; margin: 0 0 10px; }

.foot {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px;
  width: min(1120px, calc(100% - 32px)); margin: 0 auto;
  padding: 40px 0 56px; color: var(--muted); font-size: 14px;
}
.foot a { display: block; color: var(--muted); text-decoration: none; margin: 0 0 8px; }
.foot strong { color: var(--ink); }
.foot-link {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.foot-link:hover, .foot-link:focus { color: var(--ink); text-decoration: underline; }

.analytics-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 55px rgba(15, 23, 42, .18);
}
.analytics-consent p { margin: 5px 0; color: var(--muted); font-size: 14px; }
.analytics-consent a { color: var(--muted); font-size: 13px; }
.analytics-consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .7s ease forwards;
}
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
.reveal.is-visible { opacity: 1; transform: none; }

.top { animation: drop .45s ease; }
.logo span { transition: transform .35s ease; }
.logo:hover span { transform: rotate(-8deg) scale(1.06); }

.btn, .nav-cta { transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover, .nav-cta:hover { transform: translateY(-2px); }
.btn-dark:hover { box-shadow: 0 10px 24px rgba(37, 38, 54, .16); }

.card, .tile, .finding, .faq details {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover, .tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(28, 36, 51, .08);
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px; right: 8%; top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,38,54,.06), transparent 68%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.hero { position: relative; }

.faq details[open] { box-shadow: 0 10px 28px rgba(28, 36, 51, .06); }
.faq details summary { transition: color .2s ease; }
.faq details[open] summary { color: var(--ink); }

.check-back {
  margin: 0; padding: 10px clamp(16px, 4vw, 32px);
  background: #fff; border-bottom: 1px solid var(--line); font-size: 13px;
}
.check-back a { color: var(--muted); text-decoration: none; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes float { 50% { transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero, .grid-3, .grid-2, .foot { grid-template-columns: 1fr; }
  .top nav a:not(.nav-cta) { display: none; }
  .analytics-consent { align-items: stretch; flex-direction: column; }
  .analytics-consent-actions { width: 100%; }
  .analytics-consent-actions .btn { flex: 1; }
}
