@font-face {
  font-family: Geist;
  src: url('fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #060914;
  --panel: #121730;
  --line: rgb(255 255 255 / 0.14);
  --text: #f4f3fb;
  --muted: #a9adc8;
  --violet: #6c47ff;
  --lilac: #c9bcff;
  --red: #ff9a9a;
  --green: #66dfab;
  --amber: #f5c26b;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(60% 50% at 80% 0%, rgb(108 71 255 / 0.22), transparent 70%), var(--ink);
  color: var(--text);
  line-height: 1.55;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav form {
  margin: 0;
}

main {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: clamp(32px, 7vw, 72px) 16px;
}

main.wide {
  width: min(100%, 900px);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 560;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 560;
}

p {
  margin: 0 0 16px;
}

.muted {
  color: var(--muted);
}

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

.panel {
  margin: 24px 0;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

label {
  display: block;
  margin-bottom: 18px;
  font-size: 0.9375rem;
  font-weight: 520;
}

input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

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

button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font: inherit;
  font-weight: 540;
  cursor: pointer;
}

button.link {
  min-height: 0;
  padding: 0;
  background: none;
  color: var(--lilac);
  font-weight: 400;
  text-decoration: underline;
}

button.secondary {
  border: 1px solid var(--line);
  background: none;
}

button.danger {
  border: 1px solid rgb(255 154 154 / 0.5);
  background: none;
  color: var(--red);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.actions form {
  margin: 0;
}

.rows {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.wide-button {
  width: 100%;
}

.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.error {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 400;
}

.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--green);
}

/* FASE local: results from a client's own device, which FASE didn't run or verify. */
.client-run {
  padding: 12px 14px;
  border: 1px solid var(--amber);
  border-radius: 10px;
  color: var(--amber);
}

.tag-client-run {
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.8em;
  white-space: nowrap;
}

.alert {
  padding: 12px 14px;
  border: 1px solid rgb(255 154 154 / 0.5);
  border-radius: 10px;
  color: var(--red);
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-weight: 540;
  text-decoration: none;
}

.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.findings {
  margin: 0;
  padding: 0;
  list-style: none;
}

.findings li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.finding-detail,
.finding-where {
  margin: 0 0 4px;
}

.finding-where {
  font-size: 0.8125rem;
}

.badge {
  font-size: 0.8125rem;
  font-weight: 600;
}

.severity-critical,
.severity-high {
  color: var(--red);
}

.severity-medium {
  color: var(--amber);
}

.severity-low,
.severity-info {
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.plan {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.plan h2 {
  margin-top: 0;
}

.plan-price {
  font-size: 1.25rem;
  font-weight: 600;
}

/* A form outside the workspace with a choice and a confirmation, such as pairing FASE local. */
.standalone-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
}

.standalone-form .checks {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.standalone-form .checks legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 520;
}

.standalone-form .check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.standalone-form .check input[type='checkbox'] {
  width: 18px;
  min-height: 0;
  height: 18px;
  margin: 0;
  padding: 0;
  flex: none;
}
