/* Colors come from the Deadfin logo. Dark is the default; light follows the system. */
:root {
  --bg: #060B12;
  --surface: #0C1626;
  --line: #1A2A3D;
  --text: #E8EEF2;
  --muted: #8FA3B8;
  --accent: #3FE0C5;
  --accent-2: #7B68C8;
  --link: #3FE0C5;
  --code-bg: #0A1320;
  --ok: #3FE0C5;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F8FA;
    --surface: #FFFFFF;
    --line: #D5DEE6;
    --text: #0C1626;
    --muted: #4A5E72;
    --accent: #0B7F6F;
    --accent-2: #5B48B0;
    --link: #0B6E61;
    --code-bg: #EDF2F6;
    --ok: #0B7F6F;
    color-scheme: light;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

code, pre { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 12px 0;
}

.top, main, footer {
  max-width: 880px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

section { padding: 40px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding-top: 40px; text-align: center; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(30px, 5.4vw, 46px); margin: 24px auto 16px; max-width: 18em; letter-spacing: -0.01em; }
h2 { font-size: 28px; margin: 0 0 16px; }
h3 { font-size: 19px; margin: 28px 0 8px; }

.logo {
  width: clamp(112px, 22vw, 160px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 0 60px rgba(63, 224, 197, 0.14);
}
.lede { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0 auto; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 8px; }
.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.button.primary:hover { filter: brightness(1.08); }

.facts {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  text-align: left;
}
.facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  color: var(--muted);
}
.facts strong { display: block; color: var(--text); margin-bottom: 4px; }

.steps { padding-left: 0; list-style: none; counter-reset: step; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 26px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #060B12;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-top: 28px; padding-top: 3px; }

details { margin: 8px 0; }
summary { cursor: pointer; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface); color: var(--muted); font-weight: 600; }
tbody th { font-weight: 600; white-space: nowrap; }
td { color: var(--muted); }
td.ok { color: var(--ok); font-weight: 600; }
td.ok::before { content: "✓ "; }
.note { font-size: 15px; color: var(--muted); }

.links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.links li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.links a { font-weight: 600; display: block; }
.links span { font-size: 14px; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}
footer p { margin: 4px 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { gap: 12px; font-size: 14px; }
  .top nav a:nth-child(2) { display: none; }
  section { padding: 32px 0; }
  .lede { font-size: 17px; }
  .steps > li { padding-left: 0; }
  .steps > li::before { position: static; display: inline-flex; margin-top: 24px; }
  .steps h3 { margin-top: 8px; }
  pre { font-size: 12.5px; padding: 12px; }
}
