/* Colours match the app's Mantine theme (frontend/app/theme.ts). */
:root {
  --primary: #206086;
  --primary-hover: #3676a0;
  --primary-light: #ebf7ff;
  --text: #212529;
  --dimmed: #868e96;
  --border: #dee2e6;
  --bg: #ffffff;
  --radius: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
}

* { box-sizing: border-box; }

body { margin: 0; background: var(--bg); }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); max-width: 640px; }
h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.75rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
main section { margin: 48px 0; }
.muted { color: var(--dimmed); }

/* Top bar */
.topbar { border-bottom: 1px solid var(--border); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 12px; padding-bottom: 12px;
}
.logo { display: block; height: 32px; width: auto; }
.topbar-links { display: flex; gap: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-sm { padding: 6px 14px; font-size: 0.875rem; }
.btn-lg { padding: 12px 24px; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-default { background: #fff; color: var(--text); border-color: var(--border); }
.btn-default:hover { background: #f8f9fa; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }

/* Badges */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-grey { background: #f1f3f5; color: var(--dimmed); font-size: 0.7rem; padding: 2px 8px; vertical-align: middle; }

/* Migration notice */
.notice {
  margin-top: 32px; padding: 24px; border-radius: var(--radius);
  background: #fff9db; border: 1px solid #ffe066; border-left: 6px solid #fab005;
}
.notice h2 { margin-bottom: 0.75rem; }
.notice ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.notice li { margin-bottom: 0.35rem; }

/* Hero */
.hero { display: flex; align-items: center; gap: 32px; }
.hero-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lead { font-size: 1.15rem; color: var(--dimmed); max-width: 560px; }
.hero-img { width: 360px; max-width: 40%; height: auto; }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card p { color: var(--dimmed); font-size: 0.9rem; margin: 0.5rem 0 0; }
.soon { opacity: 0.55; }
.icon {
  display: inline-flex; width: 36px; height: 36px; border-radius: var(--radius);
  align-items: center; justify-content: center; margin-bottom: 12px;
  background: var(--primary-light); color: var(--primary);
}
.soon .icon { background: #f1f3f5; color: var(--dimmed); }
.icon svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps p { color: var(--dimmed); font-size: 0.9rem; }
.step-num {
  display: inline-flex; width: 36px; height: 36px; border-radius: var(--radius);
  align-items: center; justify-content: center; margin-bottom: 12px;
  background: var(--primary-light); color: var(--primary); font-weight: 700;
}
.steps .soon .step-num { background: #f1f3f5; color: var(--dimmed); }

.cta { padding: 32px; }

.footer {
  border-top: 1px solid var(--border); padding: 24px 0;
  color: var(--dimmed); font-size: 0.875rem;
}

@media (max-width: 720px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .logo { height: 22px; }
}
