/* CloudFixies (.com) neo-brutalist theme: light background, thick black
   borders, hard offset drop-shadows (no blur), flat electric-blue/lime/
   orange/amber accents, Space Grotesk display + Inter body. */
:root {
  --bg: #f4f4f8;
  --panel: #ffffff;
  --panel-2: #ededf3;
  --ink: #08080d;
  --text: #08080d;
  --text-dim: rgba(8, 8, 13, 0.62);
  --blue: #0033ff;
  --lime: #c6ff3e;
  --orange: #c2410c;
  --amber: #ffb020;
  --good: var(--lime);
  --warn: var(--amber);
  --bad: var(--orange);
  --radius: 8px;
  --border-w: 2px;
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-md: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(rgba(8, 8, 13, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  min-height: 100vh;
}

h1, h2, .btn, .stage-label, label {
  font-family: "Space Grotesk", "Inter", -apple-system, sans-serif;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand .dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--blue);
  border: var(--border-w) solid var(--ink);
}

.brand h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0;
}

.card {
  background: var(--panel);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin-bottom: 24px;
}

h2 { margin-top: 0; font-size: 22px; font-weight: 800; }
p.lead { color: var(--text-dim); line-height: 1.55; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 16px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel-2);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

select {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel-2);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

input:focus, select:focus { outline: 3px solid var(--blue); outline-offset: 1px; }

input[type="file"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--panel-2);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 13px;
}
input[type="file"]::file-selector-button {
  appearance: none;
  border: var(--border-w) solid var(--ink);
  border-radius: 6px;
  padding: 8px 14px;
  margin-right: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: var(--blue);
  color: white;
  box-shadow: 3px 3px 0 var(--ink);
}

button.btn, a.btn {
  appearance: none;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--blue);
  color: white;
  margin-top: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
button.btn:hover:not(:disabled), a.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
button.btn:active:not(:disabled), a.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }
button.btn.secondary, a.btn.secondary {
  background: var(--panel);
  color: var(--ink);
}

.error-box {
  background: #fdece3;
  border: var(--border-w) solid var(--orange);
  color: var(--orange);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  display: none;
}
.error-box.show { display: block; }

.progress-bar {
  height: 10px;
  background: var(--panel-2);
  border: var(--border-w) solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}
.progress-bar > div {
  height: 100%;
  background: var(--blue);
  transition: width 0.3s ease;
}

.stage-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.question-text { font-size: 18px; font-weight: 500; margin: 6px 0 20px; line-height: 1.5; }

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--panel-2);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.option:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.option.selected { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.option input { accent-color: var(--blue); }

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.puzzle-instructions { color: var(--text-dim); margin-bottom: 18px; line-height: 1.5; }

.arrow-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  font-size: 72px;
  font-weight: 700;
  color: var(--blue);
  user-select: none;
}

.arrow-keys {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(2, 56px);
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.arrow-keys button {
  font-size: 22px;
  font-weight: 700;
  border-radius: var(--radius);
  border: var(--border-w) solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.arrow-keys button:active { background: var(--lime); transform: translate(2px, 2px); box-shadow: none; }

.sliding-grid {
  display: grid;
  gap: 6px;
  margin: 0 auto;
  width: fit-content;
}
.sliding-tile {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  background: var(--panel);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.sliding-tile.empty { background: transparent; border: none; box-shadow: none; cursor: default; }

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.pattern-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: var(--panel);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.pattern-cell:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.pattern-cell:active { transform: translate(2px, 2px); box-shadow: none; }

.footer-note { color: var(--text-dim); font-size: 12.5px; text-align: center; margin-top: 24px; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: var(--border-w) solid var(--ink); text-align: left; }
table.data th { color: var(--ink); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.score-pill { padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; display: inline-block; border: 1.5px solid var(--ink); }
.score-pill.good { background: var(--good); color: var(--ink); }
.score-pill.warn { background: var(--warn); color: var(--ink); }
.score-pill.bad { background: var(--bad); color: white; }
.score-pill.neutral { background: var(--panel-2); color: var(--text-dim); border-style: dashed; }
.flag-badge { color: var(--orange); font-weight: 700; font-size: 12px; margin-left: 6px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar input[type="number"] { width: 90px; padding: 8px 10px; }
a.link-btn { color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 700; }
a.link-btn:hover { text-decoration: underline; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--panel);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent-color, var(--blue));
}
.stat-card .stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 6px;
}
.stat-card .stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

input[type="search"] {
  padding: 8px 12px;
  background: var(--panel-2);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  min-width: 220px;
  flex: 1 1 220px;
}
input[type="search"]:focus { outline: 3px solid var(--blue); outline-offset: 1px; }

table.data tbody tr:hover { background: var(--panel-2); }
table.data { min-width: 760px; }

/* Intake: honeypot field (off-screen, never seen by people), CAPTCHA slot, two-step form. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-box:empty { display: none; }
.captcha-box { margin: 12px 0; }
.hidden { display: none; }

/* Careers page: role cards, meta chips, the hiring steps. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.chip {
  display: inline-block;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Space Grotesk", "Inter", sans-serif;
  background: var(--lime);
  border: var(--border-w) solid var(--ink);
  border-radius: 999px;
}
.card.job { border-left-width: 8px; }
.card.job h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 22px 0 8px;
}
.card ul, .card ol { padding-left: 20px; margin: 0; }
.card ul li, .card ol li { color: var(--text-dim); line-height: 1.55; margin-bottom: 8px; }
.card ul li strong, .card ol li strong { color: var(--ink); }
ol.steps { padding-left: 20px; }
ol.steps li { margin-bottom: 12px; }
p.lead.muted { font-size: 14px; }
.back-link { margin: -16px 0 22px; font-size: 13px; font-weight: 600; }
.back-link a, .card a:not(.btn) { color: var(--blue); }
a.btn { display: inline-block; text-decoration: none; }
