:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-tint: #f3f2ec;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --border: #e2e5dc;
  --border-strong: #cbd2c7;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #e6f4f1;
  --good: #0f766e;
  --good-bg: #e6f4f1;
  --mid: #b45309;
  --mid-bg: #fef3c7;
  --low: #b91c1c;
  --low-bg: #fee2e2;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.small-txt {
  font-size: 13px;
}

.hidden {
  display: none !important;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.lang-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover {
  background: var(--surface-tint);
  border-color: var(--ink);
}

/* Hero & Typography */
.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.report-hero {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-title,
h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.report-hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.hero-sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 680px;
}

/* Scanner Shell */
.scanner-shell {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.mode-tabs {
  display: inline-flex;
  background: var(--surface-tint);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 16px;
  gap: 4px;
}

.mode-tab {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type='text'],
input[type='email'] {
  flex: 1 1 240px;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type='text']:focus,
input[type='email']:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

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

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

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

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

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

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.quick-examples {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.example-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

.scan-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-tint);
  color: var(--ink-soft);
  font-size: 14px;
}

.scan-status.error {
  background: var(--low-bg);
  color: var(--low);
}

.scan-result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.quick-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Metrics Strip */
.metrics-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.metric-label {
  font-size: 13px;
  color: var(--muted);
}

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

.section-tinted {
  background: var(--surface-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Index Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.index-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.index-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  background: #fdfcfa;
  white-space: nowrap;
}

.index-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.index-table tr:last-child td {
  border-bottom: none;
}

.index-table tbody tr:hover {
  background: #fafaf7;
}

.domain-link {
  color: var(--ink);
  font-weight: 600;
  margin-right: 8px;
}

.cat-chip {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-tint);
  color: var(--ink-soft);
}

.score-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.score-chip-lg {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
}

.grade-a {
  background: var(--good-bg);
  color: var(--good);
}

.grade-b {
  background: #dcfce7;
  color: #166534;
}

.grade-c {
  background: var(--mid-bg);
  color: var(--mid);
}

.grade-low {
  background: var(--low-bg);
  color: var(--low);
}

.table-action {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

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

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.price-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.price-val {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.price-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.feature-list li {
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Methodology Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.method-pts {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.method-card h3 {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.3;
}

.method-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Report Page */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.report-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
}

.report-summary {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.score-dial {
  width: 108px;
  height: 108px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
}

.dial-grade {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.dial-score {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}

.dial-score small {
  opacity: 0.7;
}

.report-url {
  margin: 0 0 12px;
  font-size: 13px;
  word-break: break-all;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-tag {
  font-size: 12px;
  padding: 4px 9px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink-soft);
}

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

.pillar-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.panel-heading {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.sub-heading {
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.pillar-row {
  margin-bottom: 12px;
}

.pillar-row:last-child {
  margin-bottom: 0;
}

.pillar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.pillar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.pillar-fill {
  height: 100%;
  border-radius: 999px;
}

.bar-high {
  background: var(--good);
}

.bar-mid {
  background: var(--mid);
}

.bar-low {
  background: var(--low);
}

/* Fix Pack Box */
.fixpack-box {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.checkout-panel {
  margin-top: 20px;
}

.checkout-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.checkout-note {
  margin: 8px 0 0;
  font-size: 13px;
}

.fixpack-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #141923;
  color: #e2e8f0;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #0f141d;
  border-bottom: 1px solid #263042;
  font-size: 12px;
}

.locked-tag {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 600;
}

.code-preview {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  background: #141923;
  color: #e2e8f0;
  border-radius: 8px;
}

.fixpack-preview .code-preview {
  border-radius: 0;
}

/* Checks Grid */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.check-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.check-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.check-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.check-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.check-pts {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.status-pass {
  background: var(--good-bg);
  color: var(--good);
}

.status-warn {
  background: var(--mid-bg);
  color: var(--mid);
}

.status-fail {
  background: var(--low-bg);
  color: var(--low);
}

.check-evidence {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink);
  background: var(--bg);
  padding: 8px 10px;
  border-radius: 6px;
  word-break: break-word;
}

.check-impact,
.check-fix {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.check-fix {
  margin-bottom: 0;
  color: var(--ink);
}

/* Split blocks, Badge, Compare, Delivery */
.split-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.badge-preview-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
  padding: 14px;
  background: var(--bg);
  border-radius: 8px;
}

.code-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 12px 0 6px;
}

.copy-row {
  display: flex;
  gap: 8px;
}

.copy-row input {
  height: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.peer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 18px;
}

.peer-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.peer-pill:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.inline-cmp-form {
  display: flex;
  gap: 8px;
}

.inline-cmp-form input {
  height: 36px;
  font-size: 13px;
}

.vs-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.vs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.vs-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.vs-cta {
  margin-top: 18px;
}

.filter-bar {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  text-decoration: none;
}

.delivery-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.delivery-file {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.delivery-file-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.delivery-file-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.file-btns {
  display: flex;
  gap: 8px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.lead-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 420px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links a {
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 960px) {
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid,
  .pillars-grid,
  .report-top-grid,
  .fixpack-box,
  .checks-grid,
  .split-two,
  .vs-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .report-summary {
    flex-direction: column;
  }
}
