/* BothBids v2 - Plainspoken utility stylesheet */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9f9;
  --bg-muted: #eef2f3;
  --text: #162022;
  --text-muted: #526165;
  --border: #d8e1e2;
  --accent: #0f6e6b;
  --accent-dark: #0a5452;
  --accent-soft: #e7f4f3;
  --amber-bg: #fef7e6;
  --amber-text: #8a5300;
  --amber-border: #f3d598;
  --red-bg: #fdf1f0;
  --red-text: #992b24;
  --red-border: #f1c3bf;
  --radius: 8px;
  --max-w: 1040px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 760px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 54px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.38rem, 2.6vw, 1.85rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

/* Hero */
.hero {
  padding: 58px 0 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.84rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-facts li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  margin-right: 7px;
}

/* Input Method Strip */
.input-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.input-pill {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 12px 14px;
}

.input-pill strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.input-pill span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Trust Banner */
.trust-bar {
  background: var(--accent-soft);
  border: 1px solid #c5e2e0;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #104543;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* Sample Report Tabs */
.tabs {
  display: inline-flex;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: var(--radius);
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.sample-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sample-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.badge {
  display: inline-block;
  font-size: 0.77rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  white-space: nowrap;
}

.badge-warn {
  background: var(--amber-bg);
  color: var(--amber-text);
  border-color: var(--amber-border);
}

.badge-risk {
  background: var(--red-bg);
  color: var(--red-text);
  border-color: var(--red-border);
}

.badge-ok {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: #bfe0de;
}

.quote-cite {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
  min-width: 620px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
}

tr.row-highlight td {
  background: #fcfaf2;
}

/* Email Draft Box */
.email-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  margin: 14px 0 20px;
  overflow: hidden;
}

.email-box-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
  font-size: 0.86rem;
}

.email-box pre {
  margin: 0;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1d292b;
}

/* Callout & Lists */
.callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
  font-size: 0.93rem;
}

.check-list, .plain-list {
  padding-left: 20px;
  margin: 10px 0 0;
}

.check-list li, .plain-list li {
  margin-bottom: 8px;
}

/* Pricing Box */
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 16px;
}

.price-figure {
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Legal & Support Prose */
.prose {
  padding: 44px 0 64px;
}

.prose h1 {
  margin-bottom: 8px;
}

.prose h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.prose p, .prose li {
  color: #243033;
}

.prose ul, .prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.meta-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.notice-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 0.92rem;
}

.hidden {
  display: none;
}

/* FAQ */
details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 10px 0 2px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 42px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 18px;
}

@media (max-width: 820px) {
  .input-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 38px 0 34px;
  }
  .section {
    padding: 38px 0;
  }
  .site-nav {
    gap: 14px;
  }
  .sample-box {
    padding: 16px;
  }
}

/* Clean Print / Save PDF styling */
@media print {
  .site-header, .site-footer, .tabs, .btn, .hero-actions {
    display: none !important;
  }
  body {
    background: #ffffff;
    font-size: 11pt;
  }
  .sample-box, .card, .email-box {
    border: 1px solid #cccccc;
    box-shadow: none;
    break-inside: avoid;
  }
  .tab-panel {
    display: block !important;
    margin-bottom: 24px;
  }
}
