/* lab-template styles. Rebrand by changing the variables in :root (and the icon set in public/). No build step. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #1b2430;
  --muted: #59626e;
  --line: #dde2e8;
  --accent: #2e4a6b;
  --accent-ink: #ffffff;
  --accent-soft: #e5ebf2;
  --focus: #6d8fb8;
  --ok-bg: #e8f3ea;
  --ok-line: #b9d8bf;
  --error: #9b2c1f;
  --error-bg: #fbece8;
  --error-line: #e6bdb3;
  --draft: #8a5a00;
  --draft-bg: #fff4d6;
  --draft-line: #e9cf86;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -1.2px; margin-bottom: 14px; }
h2 { font-size: 22px; letter-spacing: -.4px; }
h3 { font-size: 18px; }

/* Header, local bar, footer */
.topbar { min-height: 76px; padding: 0 max(5vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-size: 19px; font-weight: 750; letter-spacing: -.4px; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { display: block; width: 32px; height: 32px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.topbar nav { display: flex; gap: 22px; align-items: center; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { text-decoration: none; }
.topbar form { margin: 0; }
.local-bar { padding: 9px 5vw; display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 1px; color: #4a5562; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.local-bar span:last-child { letter-spacing: 0; margin-left: auto; font-size: 12px; }
.dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
main { max-width: 1180px; margin: 0 auto; padding: 48px 28px 80px; min-height: 75vh; }
footer { border-top: 1px solid var(--line); padding: 24px 5vw; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Building blocks */
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.muted { color: var(--muted); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.page-head p { margin-bottom: 0; max-width: 640px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 28px; }
.grid > .panel { margin-top: 0; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 5px 20px #1b243005; }
.panel + .panel { margin-top: 24px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.panel-header h2 { margin: 0; }
.badge { font-size: 11px; letter-spacing: .3px; border: 1px solid var(--line); background: var(--accent-soft); border-radius: 30px; padding: 4px 10px; white-space: nowrap; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
input, textarea, select { font: inherit; font-size: 15px; width: 100%; padding: 12px 13px; border: 1px solid #c6cdd6; background: var(--surface); border-radius: 8px; color: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
textarea { resize: vertical; min-height: 140px; }
.field { margin-bottom: 18px; }
.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
button, .button { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: 11px 17px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.secondary { background: transparent; color: var(--accent); border-color: #b5c0cd; }
.danger { background: transparent; color: var(--error); border-color: var(--error-line); }
.link { background: none; border: none; color: inherit; padding: 0; font-weight: 400; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notice, .errors { padding: 15px 18px; border: 1px solid var(--ok-line); background: var(--ok-bg); border-radius: 10px; margin-bottom: 24px; font-size: 14px; }
.errors { background: var(--error-bg); border-color: var(--error-line); color: var(--error); }
.errors ul { margin: 0; padding-left: 18px; }
.auth-wrap { max-width: 480px; margin: 20px auto; }
.auth-wrap h1 { font-size: 32px; }
.auth-foot { font-size: 13px; margin-top: 20px; }
.full { width: 100%; }
.spaced { margin-top: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pass-status { margin: 6px 0 0; font-size: 14px; font-weight: 650; color: var(--accent); }

/* Pricing */
.price { font-size: 17px; margin-bottom: 18px; }
.price strong { font-size: 28px; letter-spacing: -.6px; color: var(--accent); }
.checklist { padding-left: 20px; margin: 0 0 24px; }
.checklist li { margin-bottom: 8px; }
.pay-actions { display: grid; gap: 10px; }
.pay-note { font-size: 13px; font-weight: 650; margin: 14px 0 6px; }

/* Legal and long text */
.prose { max-width: 720px; overflow-wrap: anywhere; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; }
.draft-banner { padding: 12px 16px; margin-bottom: 24px; border: 1px solid var(--draft-line); background: var(--draft-bg); color: var(--draft); border-radius: 10px; font-weight: 700; letter-spacing: .3px; }

/* Admin */
.admin-counts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
td.message { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 520px; }

/* Landing */
.lp { display: grid; gap: 64px; }
.lp h2 { font-size: clamp(24px, 6vw, 34px); line-height: 1.15; letter-spacing: -1px; margin-bottom: 22px; }
.lp-hero { display: grid; gap: 40px; align-items: center; }
.lp-hero h1 { font-size: clamp(40px, 10vw, 68px); line-height: 1.02; letter-spacing: -2px; margin-bottom: 22px; }
.lp-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 580px; margin-bottom: 28px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-cta { min-height: 48px; padding: 13px 20px; font-size: 15px; border-radius: 10px; }
.lp-note { font-size: 14px; color: var(--muted); max-width: 520px; margin: 20px 0 0; }
.lp-price { font-size: 15px; color: var(--muted); margin: 0 0 22px; }
.lp-price strong { font-size: 20px; color: var(--ink); letter-spacing: -.3px; }
.lp-access { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; }
.lp-shot { margin: 0; justify-self: center; width: min(100%, 360px); }
.lp-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px -24px #1b24304d; display: grid; gap: 12px; }
.lp-mock-bar { display: flex; gap: 6px; margin-bottom: 6px; }
.lp-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lp-mock-line { height: 12px; border-radius: 6px; background: var(--accent-soft); }
.lp-mock-line.strong { height: 18px; width: 70%; background: var(--accent); opacity: .85; }
.lp-mock-line.short { width: 55%; }
.lp-mock-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.lp-shot figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.lp-benefits { display: grid; gap: 14px; }
.lp-benefit { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.lp-benefit h3 { margin-bottom: 6px; }
.lp-benefit p { margin: 0; color: var(--muted); font-size: 15px; }
.lp-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 16px; color: var(--accent); font-weight: 750; }
.lp-offer { display: grid; gap: 8px 48px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; }
.lp-offer h2 { margin-bottom: 18px; }
.lp-offer .checklist { margin-bottom: 8px; }
.lp-offer-side p { color: var(--muted); font-size: 15px; }
.lp-faq { max-width: 780px; }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq details:first-of-type { border-top: 1px solid var(--line); }
.lp-faq summary { position: relative; cursor: pointer; list-style: none; padding: 14px 40px 14px 0; min-height: 52px; font-weight: 650; font-size: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 6px; top: 11px; font-size: 22px; line-height: 1.2; font-weight: 400; color: var(--accent); }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-faq details p { margin: 0 0 18px; max-width: 700px; color: var(--muted); }
.lp-waitlist { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; max-width: 780px; }
.lp-waitlist p { color: var(--muted); }
.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.waitlist-form .field { flex: 1 1 260px; margin: 0; }
.waitlist-form button { min-height: 48px; }
.lp-final { text-align: center; }
.lp-final .lp-actions { justify-content: center; }

@media (max-width: 760px) {
  .topbar { padding: 12px 20px; }
  .brand { font-size: 16px; }
  .topbar nav { gap: 13px; font-size: 13px; }
  .local-bar { padding: 8px 20px; }
  main { padding: 30px 18px 50px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 22px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  footer span { display: none; }
}
@media (max-width: 520px) { .lp-actions .lp-cta { flex: 1 1 100%; } }
@media (min-width: 960px) {
  .lp { gap: 96px; }
  .lp-hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; padding-top: 24px; }
  .lp-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .lp-offer { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; padding: 40px; }
  .lp-waitlist { padding: 36px 40px; }
}

/* Tender profiles and lists */
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.checks input { width: auto; padding: 0; }
.tenders { list-style: none; padding: 0; margin: 0; }
.tenders li { padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.tenders li:first-child { border-top: 0; }
.tenders .meta { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
details.profile-edit { margin-top: 16px; }
details.profile-edit summary { cursor: pointer; font-weight: 650; font-size: 14px; }
