/* Active MES — landing styles. Brand tokens from specs/04_frontend_ux_ui.md. Zero-build, static. */
:root {
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --bg-base: #0f172a;       /* slate 900 */
  --bg-surface: #1e293b;    /* slate 800 */
  --bg-elev: #243043;
  --border: #334155;        /* slate 700 */
  --text: #e2e8f0;          /* slate 200 */
  --text-dim: #94a3b8;      /* slate 400 */
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
  --font: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.accent { color: #38bdf8; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary);
  color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  border-radius: var(--radius-sm); padding: 12px 20px; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--color-primary); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid #a5b4fc; outline-offset: 2px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0;
  background: rgba(15, 23, 42, .85); backdrop-filter: blur(8px); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { width: 34px; height: 34px; display: block; flex: none; }
.brand-text { font-size: 1.25rem; letter-spacing: -.01em; font-weight: 500; }
.brand-text strong { font-weight: 700; color: #a5b4fc; }
.brand-text.small { font-size: 1.1rem; }

/* Hero */
.hero { padding: 72px 0 56px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(99,102,241,.20), transparent 60%),
    radial-gradient(700px 350px at 0% 0%, rgba(34,211,238,.12), transparent 55%);
}
.hero-inner { max-width: 820px; }
.badge {
  display: inline-block; font-size: .85rem; font-weight: 600; color: #c7d2fe;
  background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.35);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; font-weight: 700; }
.lede { font-size: 1.15rem; color: var(--text-dim); max-width: 640px; margin: 18px 0 0; }

/* Signup form */
.signup { margin-top: 30px; max-width: 560px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type="email"] {
  flex: 1; min-width: 0; font: inherit; color: var(--text);
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.signup input[type="email"]::placeholder { color: #64748b; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  font-size: .9rem; color: var(--text-dim); }
.consent input { margin-top: 4px; accent-color: var(--color-primary); }
.consent a { color: #a5b4fc; }
.reassure { font-size: .82rem; color: #64748b; margin: 10px 0 0; }
.form-status { font-size: .92rem; margin: 12px 0 0; min-height: 1.2em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -.01em; }
.section-title.center { text-align: center; }
.section-lede { color: var(--text-dim); font-size: 1.08rem; }
.section-cta { background:
  radial-gradient(700px 300px at 50% 120%, rgba(99,102,241,.18), transparent 60%); }

/* Benefits grid */
.grid { list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; }
.card h3 { font-size: 1.1rem; color: #fff; }
.card p { margin: 0; color: var(--text-dim); }

/* Steps */
.steps { list-style: none; margin: 36px auto 0; padding: 0; max-width: 760px;
  display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step-n { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--color-primary); }
.steps h3 { font-size: 1.05rem; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--text-dim); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 8px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-inner p { margin: 4px 0 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { font-size: .82rem; margin-top: 24px; }

@media (max-width: 560px) {
  .signup-row { flex-direction: column; }
  .btn { width: 100%; }
  .header-inner .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
