/* bait.tax — one stylesheet, no script. Palette from the app icon (navy, gold, sheet). */

:root {
  --navy: #1f3a5f;
  --navy-deep: #14294a;
  --navy-soft: #2d4f7c;
  --gold: #d9a21b;
  --gold-deep: #b4850f;
  --gold-soft: #fbf1d6;
  --paper: #fafaf7;
  --paper-2: #f1f0ea;
  --white: #ffffff;
  --ink: #1b2130;
  --muted: #5b6472;
  --rule: #c9cfd8;
  --line: #e2e5eb;
  --entered: #111111;
  --calc: #1f4e79;
  --override: #b00020;
  --ok: #1f7a4d;
  --ok-soft: #e4f3ea;
  --err-soft: #fbe5e8;
  --info-soft: #e7eef8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, monospace;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 41, 74, 0.08), 0 12px 32px rgba(20, 41, 74, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--navy-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); }
h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--navy-soft); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-deep); }
code, pre { font-family: var(--mono); font-size: 0.92em; }
pre.code { background: var(--navy-deep); color: #e9eef7; padding: 0.9rem 1.1rem; border-radius: 8px; overflow-x: auto; white-space: pre; line-height: 1.5; }
code { background: var(--paper-2); padding: 0.08em 0.35em; border-radius: 4px; }
pre.code code { background: none; padding: 0; }
.muted { color: var(--muted); }
.fine { font-size: 0.86rem; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy-deep); padding: 0.4rem 0.8rem; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---- header ------------------------------------------------------------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; flex-wrap: wrap; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy-deep); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.04em; }
.links { display: flex; gap: 1.25rem; margin-left: 0.5rem; }
.links a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.links a:hover, .links a.on { border-color: var(--gold); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.who { color: var(--muted); font-size: 0.92rem; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
form.inline { display: inline; margin: 0; }
@media (max-width: 720px) {
  .links { order: 3; width: 100%; margin: 0; gap: 1rem; font-size: 0.95rem; }
  .who { display: none; }
}

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.btn.primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-deep); }
.btn.ghost { background: transparent; color: var(--navy-deep); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--navy); background: var(--white); }
.btn.ghost.danger { color: var(--override); }
.btn.ghost.on { border-color: var(--navy); }
.btn.small { padding: 0.4rem 0.8rem; font-size: 0.92rem; }
.btn.big { padding: 0.85rem 1.5rem; font-size: 1.05rem; }
.btn.wide { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- hero ---------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 0.9rem; }
.lead { font-size: 1.2rem; color: #333b49; max-width: 36rem; }
.lead-sm { font-size: 1.05rem; color: #333b49; }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0 1.2rem; align-items: center; }
.status { font-size: 0.92rem; color: var(--muted); max-width: 34rem; }
.pill { display: inline-block; background: var(--gold-soft); color: var(--gold-deep); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; margin-right: 0.4rem; vertical-align: middle; }
.meta { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* The workspace illustration: a window, a form with colored fields, form tabs. */
.shot { background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: 0.8rem; }
.shot-bar { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.8rem; background: var(--navy-deep); color: #dfe6f1; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #4d6690; display: block; }
.shot-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-tools { display: flex; gap: 0.3rem; padding: 0.4rem 0.6rem; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.shot-tools span { padding: 0.2rem 0.55rem; background: var(--white); border: 1px solid var(--line); border-radius: 5px; color: var(--muted); white-space: nowrap; }
.shot-form { padding: 0.9rem 1rem 0.6rem; }
.shot-head { display: flex; align-items: baseline; gap: 0.6rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.35rem; margin-bottom: 0.4rem; }
.shot-head b { font-size: 1rem; }
.shot-head span { color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-head em { font-style: normal; font-weight: 700; font-size: 1rem; }
.shot-line { display: grid; grid-template-columns: 2rem 1fr 6rem; gap: 0.5rem; align-items: center; padding: 0.28rem 0; border-bottom: 1px solid var(--line); }
.shot-line .n { color: var(--muted); font-weight: 600; }
.shot-line .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-line .v { text-align: right; font-family: var(--mono); font-size: 0.85rem; background: #fffdf5; border: 1px solid var(--rule); padding: 0.1rem 0.4rem; border-radius: 3px; }
.v.entered, .legend .entered { color: var(--entered); }
.v.calc, .legend .calc { color: var(--calc); }
.v.override, .legend .override { color: var(--override); }
.shot-tabs { display: flex; gap: 2px; padding: 0.4rem 0.6rem 0; background: var(--paper-2); border-top: 1px solid var(--line); overflow: hidden; }
.shot-tabs span { padding: 0.25rem 0.6rem; background: #e8e9e4; border: 1px solid var(--line); border-bottom: none; border-radius: 5px 5px 0 0; color: var(--muted); white-space: nowrap; }
.shot-tabs span.on { background: var(--white); color: var(--ink); font-weight: 600; }
.shot-status { padding: 0.4rem 0.8rem; background: var(--white); border-top: 1px solid var(--line); color: var(--muted); }
.shot-status .ok { color: var(--ok); font-weight: 600; margin-right: 0.3rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0; margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; background: currentColor; }
.legend.small { margin-top: 0.6rem; }

/* ---- strip and sections -------------------------------------------------- */
.strip { background: var(--navy-deep); color: #dfe6f1; }
.strip-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding: 1rem 0; align-items: center; }
.strip-row > div { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.strip-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9fb1cc; }
.chips { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.chips span, .chips b { padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid #3f5d8a; font-size: 0.9rem; font-weight: 500; }
.chips.core b { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); font-weight: 700; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--navy-deep); color: #e3e9f3; }
.section.dark h2, .section.dark .eyebrow { color: var(--white); }
.section.dark .eyebrow { color: var(--gold); }
.section.dark .lead-sm { color: #c3cedf; }
.section.dark a { color: #ffd98a; }
.grid { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid.four, .grid.three { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.1rem; box-shadow: 0 1px 2px rgba(20, 41, 74, 0.05); }
.section.alt .card { background: var(--paper); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0.4rem; color: #333b49; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.two-col.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 860px) { .two-col, .two-col.wide-left { grid-template-columns: minmax(0, 1fr); } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.checks li { position: relative; padding-left: 1.9rem; color: #333b49; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.42rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold); }
.checks li::after { content: ""; position: absolute; left: 0.36rem; top: 0.62rem; width: 0.38rem; height: 0.62rem; border: solid var(--gold-deep); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.checks li b { color: var(--navy-deep); }
.checks.light li { color: #d7dfec; }
.checks.light li b { color: var(--white); }
.checks.light li::before { background: rgba(217, 162, 27, 0.18); }
.checks.light li::after { border-color: var(--gold); }

/* ---- forms --------------------------------------------------------------- */
.form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.form.boxed { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.form label { display: block; font-weight: 600; font-size: 0.95rem; }
.form input, .form textarea, .form select {
  display: block; margin-top: 0.35rem;
  font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: 7px; background: var(--white); color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--navy); outline: 3px solid rgba(31, 58, 95, 0.15); outline-offset: 0; }
.form textarea { resize: vertical; min-height: 6rem; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid transparent; margin: 1rem 0; }
.alert p { margin: 0 0 0.4rem; }
.alert p:last-child { margin: 0; }
.alert.error { background: var(--err-soft); border-color: #e3a3ad; color: #6c0a1b; }
.alert.ok { background: var(--ok-soft); border-color: #a9d8bd; color: #114d2f; }
.alert.info { background: var(--info-soft); border-color: #b8c9e3; color: var(--navy-deep); }
code.temp { font-size: 1.15rem; background: var(--white); padding: 0.2rem 0.5rem; letter-spacing: 0.04em; }

/* ---- sign-in -------------------------------------------------------------- */
body.plain { background: var(--paper-2); }
.auth { display: grid; place-items: center; padding: clamp(2rem, 8vw, 6rem) 16px; }
.auth-card { width: min(420px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 1.2rem; letter-spacing: 0.04em; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 0.2rem; }
.auth-card .form { margin-top: 1rem; }

/* ---- download, account, admin ------------------------------------------- */
.dl-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose ol.steps { padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.3rem; }
details.it { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1.1rem; margin-top: 1rem; }
details.it summary { cursor: pointer; font-weight: 600; color: var(--navy-deep); }
details.it p { margin-top: 0.8rem; }
.side h2 { font-size: 1.25rem; margin-top: 1.5rem; }
.side h2:first-child { margin-top: 0; }
.kv { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv th { text-align: left; font-weight: 600; color: var(--muted); padding: 0.55rem 0.8rem; width: 7rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.kv td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); word-break: break-word; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: none; }
code.hash { font-size: 0.72rem; word-break: break-all; background: none; padding: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.news { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.news:last-child { border-bottom: none; }
.news h3 { margin-bottom: 0.1rem; }
.news p.muted { font-size: 0.88rem; margin-bottom: 0.5rem; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0.8rem 0 1.6rem; }
.list { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.list th { text-align: left; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.list td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tr:last-child td { border-bottom: none; }
.list tr.off td { color: var(--muted); }
.list.small { font-size: 0.85rem; }
.list td.msg { white-space: pre-wrap; max-width: 32rem; }
.list td.acts { white-space: nowrap; }
.list td.acts form { margin-right: 0.3rem; }
.tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.04em; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--info-soft); color: var(--navy-deep); }
.tag.warn { background: var(--err-soft); color: #6c0a1b; }
.count { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; background: var(--gold-soft); color: var(--gold-deep); padding: 0.15rem 0.55rem; border-radius: 999px; vertical-align: middle; }

/* ---- footer -------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); background: var(--white); padding: 2rem 0 2.5rem; margin-top: 2rem; font-size: 0.92rem; }
.foot-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--navy-deep); letter-spacing: 0.04em; }
.foot-brand .muted { font-family: var(--sans); font-weight: 400; font-size: 0.9rem; letter-spacing: 0; margin-left: 0.4rem; }
.foot-links { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: 0.8rem 0; }
