:root {
  --text: #1c1b22;
  --text-secondary: #6b6875;
  --bg: #f7f5f2;
  --surface: #eeebe6;
  --border: #e2ded7;
  --accent: #6e5bd9;
  --accent-soft: #cfc7f5;
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --text: #f2f0f7;
    --text-secondary: #a9a5b5;
    --bg: #121118;
    --surface: #1d1b25;
    --border: #2a2735;
    --accent: #9c8cf0;
    --accent-soft: #3b3466;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --text: #f2f0f7;
  --text-secondary: #a9a5b5;
  --bg: #121118;
  --surface: #1d1b25;
  --border: #2a2735;
  --accent: #9c8cf0;
  --accent-soft: #3b3466;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

main,
.site-header,
.site-footer {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 20px;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--text);
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 0 32px;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 46px);
  margin: 28px 0 12px;
  max-width: 18ch;
}

.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 34em;
  margin: 0 auto;
}

.badge {
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 15px;
}

section {
  padding: 24px 0;
}

section > h2 {
  text-align: center;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
}

.steps h3 {
  margin: 12px 0 4px;
}

.steps p {
  margin: 0;
  color: var(--text-secondary);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 32px;
}

.split h2 {
  text-align: left;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  position: relative;
  padding: 6px 0 6px 28px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.disclaimer,
.note {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

.disclaimer {
  margin: 16px 0 40px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0 48px;
  overflow-wrap: anywhere;
}

.prose h1 {
  font-size: clamp(28px, 5vw, 38px);
}

.prose h2 {
  margin-top: 36px;
  font-size: 22px;
}

.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}

.prose th,
.prose td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose em:first-child {
  color: var(--text-secondary);
}

details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 10px 0 2px;
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 15px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}

.langs {
  color: var(--text-secondary);
}

.muted {
  color: var(--text-secondary);
}

/* Elanu's orb: breathes like in the app, with a soft inviting ripple. */
.orb {
  --size: 150px;
  position: relative;
  display: inline-block;
  width: var(--size);
  height: var(--size);
  flex: none;
}

.orb > span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.orb-halo {
  background: var(--accent-soft);
  transform: scale(1.25);
}

.orb-core {
  background: var(--accent);
  box-shadow: 0 0 calc(var(--size) / 5) var(--accent);
}

.orb-ripple {
  border: 3px solid var(--accent);
  opacity: 0;
}

.hero .orb {
  margin: 40px;
  animation: breathe 5s ease-in-out infinite;
}

.hero .orb-ripple {
  animation: ripple 5.5s ease-out infinite;
}

@keyframes breathe {
  50% {
    transform: scale(1.07);
  }
}

@keyframes ripple {
  0%,
  63% {
    opacity: 0;
    transform: scale(1);
  }
  64% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .orb,
  .hero .orb-ripple {
    animation: none;
  }
}
