/* Acceleratia portal. Tokens copied from acceleratia-web's web/css/style.css (the site's visual
   identity): keep them in step. System fonts only, no JavaScript needed. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --fg: #17202e;
  --muted: #5a6475;
  --accent: #225da8;
  --accent-soft: #dbe7f5;
  --accent-tx: #b8392f;
  --tx-soft: #f8e1de;
  --line: #d9dee6;
  --ok-soft: #dff1e4;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.33rem;
  --step-2: clamp(1.6rem, 3vw, 2.1rem);
  --step-3: clamp(2rem, 5vw, 3rem);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 3.5rem;
  --max: 70rem;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101826; --surface: #172235; --fg: #e8edf4; --muted: #9aa6b8;
    --accent: #6bb6ee; --accent-soft: #1d3350; --accent-tx: #f2867b; --tx-soft: #3a2026;
    --line: #253247; --ok-soft: #173826;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: var(--step-0)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: max(1rem, 4vw); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-1) var(--space-2); min-height: 3.75rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; text-decoration: none; color: var(--fg);
}
.wordmark svg { width: 1.7rem; height: 1.7rem; }
.wordmark-sub { font-weight: 400; color: var(--muted); }
nav { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
nav a, button.link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  color: var(--muted); text-decoration: none; font: inherit; font-size: .95rem;
  background: none; border: 0; cursor: pointer;
}
nav a:hover, button.link:hover { color: var(--fg); text-decoration: underline; }
nav form { margin: 0; }

/* Page */
main { padding-block: var(--space-4); }
main.narrow { max-width: 32rem; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 var(--space-2); font-weight: 700; }
h1 { font-size: var(--step-3); letter-spacing: -.03em; }
h2 { font-size: var(--step-1); letter-spacing: -.01em; }
p { max-width: 62ch; margin: 0 0 var(--space-2); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.eyebrow { margin-bottom: var(--space-1); color: var(--accent); font-weight: 600; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .06em; }
.note { color: var(--muted); font-size: var(--step--1); }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: var(--space-1); }
.message { padding: .75rem 1rem; border-radius: 10px; background: var(--accent-soft); }
.message.success { background: var(--ok-soft); }
.message.error, .message.warning { background: var(--tx-soft); }

/* Access cards */
.cards { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); display: flex; flex-direction: column; }
.card > :last-child { margin-top: auto; margin-bottom: 0; }
.card-demo { border-top: 4px solid var(--accent); }
.card-pilot { border-top: 4px solid var(--accent-tx); }
.status { color: var(--muted); font-weight: 600; }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); margin-top: var(--space-3); }

/* Buttons and forms (also allauth's pages) */
.button, button[type="submit"]:not(.link), input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.35rem; min-height: 44px;
  background: var(--accent); color: var(--bg); text-decoration: none; border-radius: 999px;
  font: inherit; font-weight: 600; border: 0; cursor: pointer;
}
.button:hover, button[type="submit"]:not(.link):hover { background: color-mix(in srgb, var(--accent) 85%, var(--fg)); }
form > div, form p { margin-bottom: var(--space-2); }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; min-height: 44px; padding: .55rem .75rem; font: inherit; color: var(--fg);
  background: var(--surface); border: 1px solid var(--muted); border-radius: 8px;
}
.helptext, form small { display: block; color: var(--muted); font-size: var(--step--1); margin-top: .25rem; }
.errorlist { list-style: none; padding: 0; margin: .25rem 0; color: var(--accent-tx); font-weight: 600; }
main.narrow img { background: #fff; padding: .5rem; border-radius: 8px; } /* QR code, readable in dark mode */
