:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --border: #dfe4ea;
  --ink: #0f172a;
  --muted: #475569;
  --emerald: #047857;
  --emerald-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--ink);
}

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

.hero {
  padding: 44px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.lead-sm {
  color: var(--muted);
  margin: 0;
}

.proof-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.proof-bullets strong {
  color: var(--ink);
}

.card-head p {
  margin: 4px 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.audit-form {
  display: grid;
  gap: 12px;
}

.audit-form label {
  display: grid;
  gap: 5px;
}

.audit-form label span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.audit-form input,
.audit-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

.audit-form input:focus,
.audit-form select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  border-color: var(--accent);
}

.field-hint {
  display: block;
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.35;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

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

.btn-full {
  width: 100%;
}

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

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.status-line {
  margin: 0;
  min-height: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.status-line.error {
  color: var(--red);
  font-weight: 600;
}

.status-line.ok {
  color: var(--emerald);
  font-weight: 600;
}

.receipt-section {
  padding: 12px 0 42px;
}

.receipt-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.receipt-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.meta-text,
.engine-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pill-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.pill-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill-red {
  background: var(--red-soft);
  color: var(--red);
}

.pill-slate {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pill-verified {
  background: #0f766e;
  color: #ffffff;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-bar {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.receipt-columns {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.section-head {
  margin-bottom: 12px;
}

.section-head.tight {
  margin-bottom: 10px;
}

.section-sub {
  font-size: 0.88rem;
  color: var(--muted);
}

.prompt-cards {
  display: grid;
  gap: 14px;
}

.prompt-card {
  padding: 18px;
}

.prompt-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.prompt-query {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.verify-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.verify-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  background: var(--bg);
}

.verify-links a:hover {
  border-color: var(--accent);
}

.runs-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.tab-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.transcript-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: var(--ink);
  margin-bottom: 10px;
}

.source-chips {
  display: grid;
  gap: 6px;
}

.source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
}

.source-row a {
  color: var(--accent-dark);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-row a:hover {
  text-decoration: underline;
}

.targets-col {
  display: grid;
  gap: 16px;
}

.target-list {
  display: grid;
  gap: 10px;
}

.target-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fcfcfd;
}

.target-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.target-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sample-urls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.sample-url-link {
  font-size: 0.76rem;
  color: var(--accent-dark);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-url-link:hover {
  border-color: var(--accent);
}

.target-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.target-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.target-why {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.fixkit-output {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.asset-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.asset-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.asset-pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--ink);
}

.pricing-section {
  padding: 36px 0 56px;
  scroll-margin-top: 72px;
}

.pricing-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.why-runs-box {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 18px 22px;
}

.why-runs-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.why-runs-head h3 {
  margin: 0;
  font-size: 1rem;
}

.why-runs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.why-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.why-stat > strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.why-stat p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}

.btn-secondary-gap {
  margin-top: 8px;
}

.guarantee-card {
  max-width: 900px;
  margin: 22px auto 0;
  padding: 16px 20px;
  background: var(--emerald-soft);
  border-color: #a7f3d0;
  color: #064e3b;
  font-size: 0.92rem;
}

.inline-link-btn {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: underline;
  cursor: pointer;
}

.inline-link-btn:hover {
  color: var(--ink);
}

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.price-tag {
  margin: 8px 0 6px;
}

.price-tag strong {
  font-size: 2.1rem;
}

.price-tag span {
  color: var(--muted);
}

.price-sub {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.price-features {
  margin: 0 0 20px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 1;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.close-btn {
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal-desc {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .hero-grid,
  .receipt-columns,
  .why-runs-grid,
  .pricing-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}
