/* abrflow.app — the public face of an internal tool: a few quiet pages, no tracker; the only script is
   Turnstile on the contact form (/contato/). */
:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5b6472;
  --border: #e2e5ea;
  --accent: #0c1a3d;
  --link: #0b57d0;
  --link-soft: rgba(11, 87, 208, 0.12);
  --field-bg: #ffffff;
  --field-border: #868f9d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1b2438;
    --text: #e5e7eb;
    --muted: #a3acba;
    --border: #2c3850;
    --accent: #c6e24a;
    --link: #8ab4f8;
    --link-soft: rgba(138, 180, 248, 0.16);
    --field-bg: #0f172a;
    --field-border: #66748e;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--link); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 32px; height: 32px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.25rem;
}
h1 { margin: 0 0 0.75rem; font-size: 1.6rem; line-height: 1.25; }
h2 { margin: 1.75rem 0 0.4rem; font-size: 1.1rem; }
p, ul { margin: 0 0 0.9rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.3rem; }
.lead { color: var(--muted); }
.links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.links a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}
.links a:hover { border-color: var(--link); }
.links strong { display: block; color: var(--link); }
.links span { color: var(--muted); font-size: 0.92rem; }
.enter {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.25rem 0 0;
}
.enter span { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.button {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 0.6rem;
  background: #0066cc;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}
/* The same look on the contact form's submit button. */
button.button { border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: background-color 0.15s; }
.button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.button:hover { background: #0052a3; }
@media (max-width: 30rem) {
  .enter { flex-direction: column; align-items: flex-start; }
}
.foot {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.foot a { color: var(--muted); }
table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

/* Contact form (/contato/). */
.note {
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--link);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--link-soft);
  font-size: 0.95rem;
}
.note p { margin: 0 0 0.5rem; }
.note p:last-child { margin-bottom: 0; }
.form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.form-field > label, .form-field > legend {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.form-field .optional { font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--field-border);
  border-radius: 0.5rem;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: 0.75; }
.form input:hover, .form textarea:hover { border-color: var(--muted); }
.form input:focus, .form textarea:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px var(--link-soft); }
.form textarea { display: block; resize: vertical; min-height: 9rem; }
/* Subject: one pill per option, the chosen one in the link color. */
.options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: var(--field-bg);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.option:hover { border-color: var(--muted); }
.option input { margin: 0; accent-color: var(--link); }
.option:has(input:checked) { border-color: var(--link); background: var(--link-soft); font-weight: 600; }
.option:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
/* Turnstile and the button share the last row; Turnstile keeps its own fixed size. */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
}
/* Turnstile is drawn by contato.js: 300x65 normal, 150x140 compact under 380 px. */
.form-actions .turnstile { min-height: 65px; }
@media (max-width: 36rem) {
  .card { padding: 1.25rem 1rem 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .button { width: 100%; }
}
/* Bot trap: off screen, still in the form (some bots skip display: none fields). */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
