/* BidRep: public-works signage meets the drawing title block.
   Same colors, type and target mark as the social profiles and banners. */
:root {
  --paper: #F7F8F5;     /* bond paper, cool */
  --sheet: #FFFFFF;
  --ink: #1E2A2F;       /* graphite */
  --ink-soft: #5F6B66;
  --rule: #C9D1CC;      /* drafting line */
  --rule-light: #E3E8E4;
  --survey: #E5590F;    /* marking-paint orange: deadlines and the main action only */
  --survey-dark: #B8450A;
  --field: #2F7D4F;     /* verified / Bid */
  --warn-bg: #FFF4EC;
  --on-ink: #A0ACB0;    /* secondary text on dark */
  --ink-line: #2C3A40;  /* target rings and rules on dark */
  --survey-light: #F48A4E;
  --ok-bg: #EEF6F1;
  --radius: 3px;
  --sans: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  font-feature-settings: "tnum" 1;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--survey-dark); }
:focus-visible { outline: 3px solid var(--survey); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--cond); line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- frame ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px); background: var(--ink); color: var(--paper);
  border-bottom: 3px solid var(--survey);
}
.has-band .top { border-bottom: 1px solid var(--ink-line); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; color: var(--paper);
  font-family: var(--cond); font-weight: 800; font-size: 1.55rem; text-decoration: none; letter-spacing: -.01em;
}
.wordmark img { display: block; width: 34px; height: 34px; }
.wordmark:hover { color: var(--paper); }
.nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav a, .nav button.link { text-decoration: none; font-weight: 500; color: var(--paper); }
.nav a:hover, .nav button.link:hover { color: var(--survey-light); }
.nav a.active { box-shadow: inset 0 -3px 0 var(--survey); }
.top .btn { background: transparent; border-color: var(--paper); color: var(--paper); }
.top .btn:hover { background: var(--paper); color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 64px; }
.foot {
  background: var(--ink); color: var(--on-ink); border-top: 3px solid var(--survey);
  padding: 22px clamp(16px, 4vw, 40px); font-size: .9rem; display: flex; gap: 20px; flex-wrap: wrap;
}
.foot a { color: var(--paper); }
.foot a:hover { color: var(--survey-light); }

/* ---------- dark band (home page top, like the X header) ---------- */
.band {
  background: var(--ink) url("rings.svg") no-repeat; background-size: 820px 820px;
  background-position: calc(100% + 220px) 50%;
  color: var(--paper); border-bottom: 6px solid var(--survey);
}
.band-in { max-width: 1080px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 40px) 56px; }
.band h1 { font-weight: 800; color: var(--paper); font-size: clamp(2.1rem, 4.4vw, 2.8rem); }
.band .hero { grid-template-columns: 1.3fr .7fr; gap: 40px; }
.has-band .wrap { padding-top: 0; }
.band h1 .hl { display: block; color: var(--survey); }
.band .lede, .band .muted { color: var(--on-ink); }
.band .lede strong { color: var(--paper); }
.band a { color: var(--paper); }
.band .board a { color: var(--ink); }
.band .board { color: var(--ink); border-color: var(--sheet); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.band .board .muted { color: var(--ink-soft); }
.band input:focus { border-color: var(--survey); }
.eyebrow { font-family: var(--cond); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--survey-light); margin-bottom: 10px; }

/* ---------- controls ---------- */
.btn {
  display: inline-block; font: 600 1rem var(--sans); padding: 11px 20px; border-radius: var(--radius);
  border: 2px solid var(--ink); background: var(--sheet); color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--sheet); }
.btn.primary { background: var(--survey); border-color: var(--survey); color: #fff; }
.btn.primary:hover { background: var(--survey-dark); border-color: var(--survey-dark); }
.btn.quiet { border-color: var(--rule); font-weight: 500; }
.btn.small { padding: 6px 12px; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], textarea, select {
  width: 100%; font: 1rem var(--sans); padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--sheet); color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(229,89,15,.25); }
.field { margin-bottom: 18px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-block; padding: 7px 12px; border: 1.5px solid var(--rule); border-radius: var(--radius);
  background: var(--sheet); font-weight: 500; cursor: pointer; user-select: none;
}
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--sheet); }
.choice input:focus-visible + span { outline: 3px solid var(--survey); outline-offset: 2px; }
.choices.states .choice span { min-width: 3.2em; text-align: center; }

/* ---------- messages ---------- */
.flash { padding: 12px 16px; border-left: 4px solid var(--field); background: var(--ok-bg); margin-bottom: 20px; }
.flash.error { border-color: var(--survey); background: var(--warn-bg); }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.hero p.lede { font-size: 1.2rem; }
.signup { display: flex; gap: 8px; max-width: 460px; margin-top: 24px; }
.signup input { flex: 1; }
.board { background: var(--sheet); border: 2px solid var(--ink); }
.board-head { padding: 12px 16px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.board-head strong { font-family: var(--cond); font-size: 2.6rem; line-height: 1; }
.board table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.board td { padding: 8px 16px; border-bottom: 1px solid var(--rule-light); }
.board td:last-child { text-align: right; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); background: var(--sheet); margin: 56px 0; }
.steps div { padding: 20px; border-right: 1px solid var(--rule); }
.steps div:last-child { border-right: 0; }
.steps b { font-family: var(--cond); font-size: 1.9rem; color: var(--survey); display: block; line-height: 1; margin-bottom: 8px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1.5px solid var(--rule); background: var(--sheet); padding: 20px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); }
.plan .price { font-family: var(--cond); font-size: 2.4rem; font-weight: 700; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.plan form, .plan .btn { margin-top: auto; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; border: 2px solid var(--ink); background: var(--sheet); margin: 0 0 48px; }
.split > div { padding: 24px 26px; }
.split-us { border-right: 1px solid var(--rule); }
.split-you { background: var(--ink); color: var(--paper); }
.split-you h2 { color: var(--survey-light); }
.split-you .muted { color: var(--on-ink); margin: 14px 0 0; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 30px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 14px; height: 8px; border-left: 3px solid var(--survey); border-bottom: 3px solid var(--survey); transform: rotate(-45deg); }

/* ---------- agreements ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.agree { max-width: 760px; }
.agree .lede { font-size: 1.1rem; }
.agree-box { border: 1.5px solid var(--rule); background: var(--sheet); padding: 6px 0; margin: 18px 0 10px; }
.tick { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 12px 18px; margin: 0; font-weight: 400; cursor: pointer; position: relative; }
.tick + .tick { border-top: 1px solid var(--rule-light); }
.tick input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 2px 0 0 18px; left: 0; }
.tick .box { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--sheet); margin-top: 1px; display: grid; place-items: center; }
.tick input:checked + .box { background: var(--survey); border-color: var(--survey); }
.tick input:checked + .box::after { content: ""; width: 10px; height: 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.tick input:focus-visible + .box { outline: 3px solid var(--survey); outline-offset: 2px; }
.tick:hover .box { border-color: var(--survey); }
.sign { border: 2px solid var(--ink); background: var(--sheet); padding: 18px 20px 20px; margin-top: 18px; }
.sign h2 { margin-bottom: 12px; }
.sign-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0 14px; }
.sig-input { font-family: var(--cond) !important; font-size: 1.25rem !important; font-weight: 600; }
.notice-draft { border-left: 4px solid var(--survey); background: var(--warn-bg); padding: 10px 14px; font-size: .92rem; margin: 0 0 18px; }
.notice-draft span { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: 2px; }
@media (max-width: 860px) { .sign-grid { grid-template-columns: 1fr; } }

/* ---------- Bid Room ---------- */
.room-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.room-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.eyebrow-dark { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--survey-dark); margin: 0 0 4px; font-size: .95rem; }
.due-box { background: var(--ink); color: var(--paper); padding: 10px 16px; text-align: center; min-width: 120px; border-bottom: 4px solid var(--survey); }
.due-box strong { display: block; font-family: var(--cond); font-size: 1.8rem; line-height: 1.1; }
.room-check { background: var(--sheet); border: 2px solid var(--ink); padding: 18px 20px; margin-bottom: 28px; }
.check-sum { font-weight: 600; }
.checks { list-style: none; margin: 0 0 10px; padding: 0; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule-light); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; vertical-align: baseline; }
.check-sum .dot { margin: 0 4px 0 0; vertical-align: -1px; }
.dot.red { background: #C4320A; } .dot.yellow { background: #E0A100; } .dot.green { background: var(--field); }
.room-sec { margin: 0 0 30px; scroll-margin-top: 16px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.formdoc { background: var(--sheet); border: 1.5px solid var(--rule); padding: 12px 16px; margin-bottom: 12px; }
.formdoc summary { cursor: pointer; }
.fields { display: grid; grid-template-columns: 1fr; }
.frow { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--rule-light); }
.frow label { margin: 0; font-weight: 500; }
.frow.sig { background: var(--warn-bg); padding-left: 8px; }
.req { font-size: .75rem; color: var(--survey-dark); font-weight: 700; text-transform: uppercase; margin-left: 4px; }
.ticklist { list-style: none; margin: 0 0 12px; padding: 0; background: var(--sheet); border: 1.5px solid var(--rule); }
.ticklist li + li { border-top: 1px solid var(--rule-light); }
textarea { width: 100%; font: .98rem/1.5 var(--sans); padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--sheet); color: var(--ink); }
.finish { border: 2px solid var(--survey); background: var(--sheet); padding: 18px 20px; }
.finish .tick { padding: 6px 0; grid-template-columns: 26px 1fr; }
.finish .tick input { margin-left: 0; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .frow { grid-template-columns: 1fr; gap: 4px; } .room-head { flex-direction: column; } }

.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.outcome { border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 14px; }
.outcome-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border: 1.5px solid var(--ink); border-radius: 999px; margin-left: 6px; }
.badge.won { background: var(--field); border-color: var(--field); color: #fff; }

/* ---------- title block (one opportunity) ---------- */
.list { display: flex; flex-direction: column; gap: 14px; }
.tb {
  display: grid; grid-template-columns: 92px 1fr 210px; background: var(--sheet);
  border: 1.5px solid var(--ink);
}
.tb .sign { border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 6px; }
.sign .n { font-family: var(--cond); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.sign .u { font-size: .8rem; color: var(--ink-soft); }
.sign.soon { background: var(--survey); color: #fff; border-right-color: var(--survey); }
.sign.soon .u { color: #fff; }
.tb .main { padding: 14px 18px 0; min-width: 0; }
.tb .main h3 { margin-bottom: 2px; font-size: 1.22rem; }
.tb .main .owner { color: var(--ink-soft); margin-bottom: 8px; }
.tb .why { font-size: .92rem; margin-bottom: 12px; }
.strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin: 0 -18px; border-top: 1px solid var(--ink); }
.strip div { padding: 7px 18px 9px; border-right: 1px solid var(--rule); min-width: 0; }
.strip div:last-child { border-right: 0; }
.strip dt { color: var(--ink-soft); font-size: .78rem; }
.strip dd { margin: 0; font-size: .93rem; font-weight: 500; overflow-wrap: anywhere; }
.tb .actions { border-left: 1px solid var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.tb .actions .btn, .tb .actions form { width: 100%; }
.tb .actions .btn { text-align: center; }
.tb .actions a.small { text-align: center; }
.tag { display: inline-block; font-size: .82rem; padding: 2px 8px; border: 1px solid var(--rule); border-radius: var(--radius); margin: 0 4px 4px 0; background: var(--paper); }
.tag.setaside { border-color: var(--field); color: var(--field); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.seg a { padding: 6px 14px; text-decoration: none; font-weight: 500; }
.seg a + a { border-left: 1.5px solid var(--ink); }
.seg a.on { background: var(--ink); color: var(--sheet); }
.meter { font-size: .95rem; }
.meter b { font-family: var(--cond); font-size: 1.2rem; }
.empty { border: 2px dashed var(--rule); padding: 32px; text-align: center; background: var(--sheet); }
.upsell { border: 2px solid var(--survey); background: var(--warn-bg); padding: 18px 20px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- packages ---------- */
table.pk { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1.5px solid var(--ink); }
table.pk th, table.pk td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule-light); vertical-align: top; }
table.pk th { font-weight: 600; font-size: .9rem; color: var(--ink-soft); border-bottom: 1.5px solid var(--ink); }
.status { font-weight: 600; }
.status.done { color: var(--field); }
.status.failed { color: var(--survey-dark); }
.status.running, .status.queued { color: var(--ink-soft); }
.err { white-space: pre-wrap; font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- forms layout ---------- */
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
fieldset { border: 1.5px solid var(--rule); background: var(--sheet); padding: 18px 20px 6px; margin: 0 0 22px; }
legend { font-family: var(--cond); font-weight: 600; font-size: 1.25rem; padding: 0 6px; }
.proj { border-top: 1px solid var(--rule-light); padding-top: 12px; margin-top: 4px; }
.sticky-save { position: sticky; bottom: 0; background: var(--paper); padding: 14px 0; border-top: 1px solid var(--rule); }

.legal { max-width: 72ch; }
.legal h2 { margin-top: 1.4em; }
.legal .caps { text-transform: uppercase; font-size: .92rem; letter-spacing: .01em; }

@media (max-width: 860px) {
  .top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .band .hero { grid-template-columns: 1fr; }
  .band { background-size: 560px 560px; background-position: calc(100% + 260px) 0; }
  .nav { gap: 6px 16px; font-size: .95rem; }
  .hero, .pricing, .steps, .formgrid, .split { grid-template-columns: 1fr; }
  .split-us { border-right: 0; border-bottom: 1px solid var(--rule); }
  .steps div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tb { grid-template-columns: 72px 1fr; }
  .tb .actions { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tb .actions .btn, .tb .actions form { width: auto; }
  .strip { grid-template-columns: 1fr; }
  .strip div { border-right: 0; border-bottom: 1px solid var(--rule-light); }
  .signup { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- bid package build progress ---------- */
.build { min-width: 240px; }
.steps-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; list-style: none; margin: 2px 0 8px; padding: 0; }
.steps-bar li { height: 8px; background: var(--rule-light); border: 1px solid var(--rule); }
.steps-bar li.done { background: var(--ink); border-color: var(--ink); }
.steps-bar li.now {
  border-color: var(--survey);
  background: repeating-linear-gradient(-45deg, var(--survey) 0 6px, #F48A4E 6px 12px);
  background-size: 34px 100%;
  animation: build-stripe 1s linear infinite;
}
@keyframes build-stripe { to { background-position: 34px 0; } }
.build-label { font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.clock { font-variant-numeric: tabular-nums; }
.limited { margin-top: 6px; font-size: .88rem; border-left: 3px solid var(--survey); background: var(--warn-bg); padding: 6px 10px; max-width: 40ch; }
