:root {
  color-scheme: light;
  --ground: #ffffff;
  --surface: #f6f7f9;
  --line: #e3e6eb;
  --ink: #14171f;
  --muted: #4b5563;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Hidden means hidden, even for elements given a display of their own below. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 8px; }

.button { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid #b8c0cc; background: var(--ground); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button.solid { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.button:disabled { opacity: 0.6; cursor: default; }

.hero { padding: 56px 0 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.hero h1 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(36px, 6vw, 60px); line-height: 1.02; }
.hero p { margin: 0 0 24px; font-size: 20px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.robots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.robots img { width: 100%; height: auto; aspect-ratio: 1; padding: 10px; border-radius: 20px; background: var(--surface); }

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); line-height: 1.1; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { padding: 22px; border-radius: 18px; background: var(--surface); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.cards.icons { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.cards.icons .card { display: flex; flex-direction: column; gap: 10px; }
.cards.icons .card h3 { margin: 0; font-size: 17px; }
.steps li { align-items: center; }
.card p { margin: 0; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; max-width: 720px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; }
.steps strong { display: block; }
.steps span { color: var(--muted); }
.plain { max-width: 720px; }
.plain li { margin-bottom: 8px; }

.foot { padding: 28px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Sign in and create account */
.auth { max-width: 440px; margin: 0 auto; padding: 40px 24px 64px; }
.auth h1 { margin: 24px 0 8px; font-family: var(--font-display); font-size: 34px; line-height: 1.1; }
.auth p.lead { margin: 0 0 24px; color: var(--muted); }
.auth p.lead:empty { display: none; }
.auth h1 { margin-bottom: 20px; }
.auth form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.field input { min-height: 50px; padding: 0 14px; border: 1px solid #b8c0cc; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); }
.field small { font-weight: 400; color: var(--muted); }
.password-box { position: relative; display: flex; }
.password-box input { flex: 1; min-width: 0; padding-right: 56px; }
.reveal { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.reveal:hover { background: var(--surface); color: var(--ink); }
.reveal .eye-closed, .reveal[aria-pressed="true"] .eye-open { display: none; }
.reveal[aria-pressed="true"] .eye-closed { display: block; }
.error { margin: 0; font-weight: 600; color: #a11d1d; }
.error:empty { display: none; }
.switch { margin: 20px 0 0; color: var(--muted); }
.switch button { border: 0; padding: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; cursor: pointer; }

@media (max-width: 760px) {
  /* The hero already has both buttons; the header keeps just Sign in. */
  .top nav .button.solid { display: none; }
  .hero { grid-template-columns: 1fr; padding: 32px 0 28px; }
  .wrap { padding: 0 16px; }
}
