:root {
  --bg: #e4e8ef;
  --surface: #d5dae3;
  --border: #c5cad3;
  --text: #1c1d21;
  --text-2: #5a5d65;
  --muted: #8a8e96;
  --accent: #17181c;
  --on-accent: #e4e8ef;
  --sans: Inter, Roboto, system-ui, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #e4e8ef;
  color: var(--text);
  font: 16px/1.55 var(--sans);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site,
footer.site {
  border-color: var(--border);
  border-style: solid;
  border-width: 0;
}

header.site {
  position: fixed;
  top: 16px;
  left: 30px;
  right: 30px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  max-width: 1200px;
  margin: 0 auto;
  background: rgb(23, 24, 28);
  border: 1px solid rgba(228, 232, 239, 0.12);
  border-radius: 999px;
  font-family: Inter, Roboto, system-ui, sans-serif;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    opacity 0.36s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

header.site.is-away {
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.36s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  header.site,
  header.site.is-away {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
}

header.site nav a {
  color: #a8adb6;
}

header.site nav a:hover {
  color: #e4e8ef;
  text-decoration: none;
}

header.site .text-btn {
  color: #a8adb6;
}

header.site .text-btn:hover {
  color: #e4e8ef;
  text-decoration: none;
}

main.wrap {
  padding-top: 88px;
  padding-bottom: 88px;
}

footer.site {
  border-top-width: 1px;
  padding: 20px 0 32px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  position: relative;
  z-index: 2;
  background: #101114;
  color: #a8adb6;
  padding: 72px 30px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: Roboto, Inter, sans-serif;
}

.site-footer-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

@media (min-width: 720px) {
  .site-footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer strong {
  display: block;
  color: #e4e8ef;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
  font-family: Inter, Roboto, sans-serif;
}

.site-footer a {
  display: block;
  color: #a8adb6;
  font-size: 14px;
  padding: 4px 0;
}

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

.site-footer .copy {
  grid-column: 1 / -1;
  padding-top: 28px;
  margin-top: 12px;
  border-top: 1px solid #2a2c32;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer .copy p {
  margin: 0 0 10px;
}

.site-footer .copy p:last-child {
  margin-bottom: 0;
}

.brand {
  color: #e4e8ef;
  font-family: Inter, Roboto, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: #e4e8ef;
  opacity: 0.75;
}

nav.links {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  align-items: center;
  margin-left: auto;
  font-family: Inter, Roboto, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

footer.site .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1 {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 36px 0 12px;
}

h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 28px 0 8px;
}

p.lead {
  color: var(--text-2);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin: 0 0 14px;
  background: var(--surface);
}

.card h2 {
  margin-top: 0;
}

.card p {
  color: var(--text-2);
  margin: 0;
}

.legal h1 {
  margin-top: 28px;
}

.legal h2 {
  margin-top: 28px;
  font-size: 18px;
}

.legal p {
  color: var(--text-2);
  margin: 0 0 12px;
}

form.card label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 14px;
}

form.card input,
.card input,
.grid4 input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  appearance: none;
}

form.card .btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.login-card {
  max-width: none;
}

.text-btn {
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.text-btn:hover {
  text-decoration: underline;
}

.err {
  color: #a33b32;
  margin: 0 0 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.tab {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.tab.on {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.tab:hover {
  color: var(--text);
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.grid4 label,
.card label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
}



.card .btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  margin-top: 8px;
}

.pass-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.pass-row label {
  flex: 0 1 220px;
  margin-bottom: 0;
}

.pass-row .btn {
  margin-top: 0;
  margin-bottom: 2px;
}

pre.result {
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric h2 {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

.metric-n {
  font-size: 28px;
  font-weight: 650;
  margin: 8px 0 0;
  color: var(--text);
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 22px;
}

main.wrap > h1 {
  margin-top: 20px;
}

@media (max-width: 640px) {
  header.site {
    top: 10px;
    left: 20px;
    right: 20px;
    padding: 12px 16px;
  }

  nav.links {
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  main.wrap {
    padding-top: 76px;
    padding-bottom: 72px;
  }
}
