:root {
  color-scheme: light;
  --ink: #142524;
  --muted: #60706e;
  --teal: #1e7268;
  --teal-dark: #15564f;
  --mint: #dff4ef;
  --line: #d9e3e1;
  --surface: #ffffff;
  --canvas: #f4f8f7;
  --danger: #a12b2b;
  --shadow: 0 20px 60px rgba(23, 55, 51, .10);
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; }
a { color: var(--teal); font-weight: 650; text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 5vw; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; color: white;
  border-radius: 11px; background: var(--teal); font-weight: 800;
}
nav { display: flex; gap: 22px; align-items: center; }
.link-button { border: 0; padding: 0; color: var(--teal); background: transparent; font-weight: 650; }

main { width: min(1180px, 90vw); margin: 0 auto; }
.login-shell {
  min-height: calc(100vh - 150px); display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(40px, 8vw, 110px); align-items: center; padding: 70px 0;
}
.login-copy h1, .hero h1 { max-width: 840px; margin: 12px 0 20px; font-size: clamp(38px, 5vw, 68px); line-height: 1.03; letter-spacing: -.045em; }
.login-copy > p, .hero p { max-width: 760px; font-size: 18px; color: var(--muted); }
.trust-list { padding: 0; margin: 28px 0 0; list-style: none; display: grid; gap: 10px; }
.trust-list li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.login-card { padding: 32px; display: grid; gap: 18px; }
.login-card h2 { margin: 0; font-size: 28px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
input { width: 100%; padding: 13px 14px; border: 1px solid #b7c8c5; border-radius: 10px; background: white; color: var(--ink); }
input:focus { outline: 3px solid rgba(30,114,104,.18); border-color: var(--teal); }

.primary, .secondary {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center;
  border-radius: 12px; padding: 11px 17px; border: 1px solid var(--teal);
  font-weight: 750; transition: transform .15s ease, background .15s ease;
}
.primary { background: var(--teal); color: white; }
.primary:hover { background: var(--teal-dark); color: white; text-decoration: none; transform: translateY(-1px); }
.primary:disabled { opacity: .55; cursor: wait; transform: none; }
.secondary { background: white; color: var(--teal); }
.button-link { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { min-height: 1.4em; margin: 0; color: var(--danger); font-weight: 650; }
.eyebrow, .step-number { color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }

.hero { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; padding: 80px 0 48px; }
.environment-pill { flex: 0 0 auto; padding: 10px 14px; border-radius: 999px; background: var(--mint); color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.environment-pill span { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #1b9d72; }
.journey { counter-reset: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.journey-card { min-height: 285px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.72); display: flex; flex-direction: column; align-items: flex-start; }
.journey-card.active { background: var(--ink); color: white; border-color: var(--ink); box-shadow: var(--shadow); }
.journey-card h2 { margin: 13px 0 10px; font-size: 21px; line-height: 1.2; }
.journey-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.journey-card.active p { color: #cbd9d7; }
.journey-card a, .journey-card button { margin-top: auto; }
.results { margin: 28px 0; padding: clamp(24px, 4vw, 42px); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.results h2 { margin: 8px 0 4px; font-size: 30px; }
.progress { height: 6px; margin: 26px 0; overflow: hidden; border-radius: 10px; background: var(--mint); }
.progress span { display: block; width: 38%; height: 100%; background: var(--teal); animation: loading 1.1s infinite ease-in-out; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.check { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.check strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.check span { font-size: 12px; color: var(--muted); }
.check.passed strong::before { content: "✓ "; color: #16835e; }
.check.failed strong::before { content: "× "; color: var(--danger); }
.check.skipped strong::before { content: "– "; color: #8a7a41; }
.offer {
  margin: 28px 0 70px; padding: clamp(28px, 5vw, 54px); display: flex; align-items: center; justify-content: space-between; gap: 50px;
  border-radius: 24px; color: white; background: linear-gradient(120deg, #163c38, #1e7268);
}
.offer .eyebrow { color: #aee5d8; }
.offer h2 { margin: 8px 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; }
.offer p { max-width: 800px; margin: 0; color: #d7e9e5; }
.offer .primary { background: white; border-color: white; color: var(--teal-dark); }
footer { min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 26px; padding: 20px 5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; padding: 45px 0; }
  .login-card { max-width: 540px; }
  .hero { display: block; padding-top: 55px; }
  .environment-pill { display: inline-block; margin-top: 16px; }
  .journey { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .offer { display: block; }
  .offer .button-link { margin-top: 28px; }
}
@media (max-width: 600px) {
  .topbar { padding: 12px 5vw; align-items: flex-start; }
  nav { gap: 10px; flex-direction: column; align-items: flex-end; font-size: 13px; }
  .brand strong { display: none; }
  main { width: min(92vw, 1180px); }
  .login-copy h1, .hero h1 { font-size: 39px; }
  .login-card { padding: 24px; }
  .journey, .checks { grid-template-columns: 1fr; }
  .journey-card { min-height: 240px; }
  .results-head { display: block; }
  .results-head .secondary { margin-top: 16px; }
  footer { flex-wrap: wrap; gap: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition: none !important; }
}
