:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #334155;
  --border: #cbd5e1;
  --primary: #0b4f6c;
  --primary-hover: #083b51;
  --primary-tint: #e0f2fe;
  --primary-tint-text: #083344;
  --accent-border: #0b4f6c;
  --focus: #0a4b78;
  --radius: 10px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #eef2f7;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 6px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.nav-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.2;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
}

.btn-block {
  display: block;
  width: 100%;
}

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

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

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

.btn-secondary:hover {
  border-color: var(--primary);
}

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

.btn-outline:hover {
  background: var(--primary-tint);
  color: var(--primary-tint-text);
}

.hero {
  padding: 3.75rem 0 3.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.25rem;
  align-items: start;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
}

.eyebrow {
  margin: 0;
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary-tint-text);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.version-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: underline;
}

.version-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #15803d;
  flex-shrink: 0;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.2;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.hero-sample-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

.sample-report-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-block-size: 28px;
}

.sample-report-link:hover {
  color: var(--primary-hover);
}

.sample-report-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-sample-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-sample-callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.mor-trust-box {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: #f0f9ff;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  color: var(--primary-tint-text);
  font-size: 0.94rem;
  line-height: 1.5;
}

.mor-trust-box svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--primary);
}

.mor-trust-box p {
  margin: 0;
}

.changelog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.changelog-header h2 {
  margin: 0;
}

.changelog-list {
  display: grid;
  gap: 1rem;
}

.changelog-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.changelog-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.6rem;
}

.changelog-entry h3 {
  margin: 0;
  font-size: 1.12rem;
}

.changelog-date {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.changelog-entry ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.changelog-entry li + li {
  margin-top: 0.3rem;
}

.trust-points {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.card-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.metric-list {
  margin: 0;
}

.metric-item + .metric-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.metric-item dt {
  font-weight: 700;
  color: var(--text);
}

.metric-item dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.section {
  padding: 3.5rem 0;
}

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

.section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.85rem;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 72ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.75rem;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
}

.billing-btn:hover {
  background: #e2e8f0;
}

.billing-btn.is-active {
  background: var(--primary);
  color: #ffffff;
}

.billing-btn.is-active:hover {
  background: var(--primary-hover);
}

.billing-save {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-tint-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.billing-btn.is-active .billing-save {
  background: #ffffff;
  color: var(--primary);
}

.plan-billing-note {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.trust-strip {
  margin: 0.9rem 0 0;
  padding: 0.85rem 1.15rem;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: #eaf1f7;
  font-weight: 700;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.price-card-featured {
  border: 2px solid var(--accent-border);
  box-shadow: 0 10px 28px rgba(11, 79, 108, 0.12);
}

.plan-badge {
  margin: 0 0 0.5rem;
  display: inline-block;
  align-self: flex-start;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.plan-tier {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
}

.plan-price {
  margin: 0.4rem 0;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.currency {
  font-size: 1.3rem;
  vertical-align: top;
}

.period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  flex: 1;
}

.price-card li + li {
  margin-top: 0.35rem;
}

.disclaimer-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 6px;
}

.disclaimer-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.disclaimer-box p {
  margin: 0;
  color: var(--text-muted);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-doc {
  padding: 3rem 0;
  max-width: 78ch;
}

.legal-doc h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.modal-dialog {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 540px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
}

.modal-card {
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-body {
  margin: 1rem 0 1.25rem;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
