/* BothBids - Plainspoken utility stylesheet */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9f9;
  --bg-muted: #eff3f3;
  --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: 1020px;
}

*, *::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: 740px;
}

.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: 56px 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.9rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

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

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

/* Hero */
.hero {
  padding: 64px 0 52px;
}

.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.12rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.96rem;
  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);
}

.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;
}

/* 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;
}

.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: baseline;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

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

.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;
}

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

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

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;
}

/* 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 {
  max-width: 680px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

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

.price-figure {
  font-size: 2.3rem;
  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 (Checkout status) */
.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.4fr 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: 760px) {
  .grid-2, .grid-3, .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 0 36px;
  }
  .section {
    padding: 40px 0;
  }
  .site-nav {
    gap: 14px;
  }
}
