:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --accent: #f97316;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --success: #16a34a;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

.hidden {
  display: none !important;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  background: var(--primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.brand-text {
  font-size: 16px;
  color: var(--text);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

@media (max-width: 600px) {
  #navPayBtn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text {
  text-align: left;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-text {
    text-align: center;
  }
}

.eyebrow {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -1px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero h1 {
    white-space: normal;
    font-size: 28px;
  }
}

.hero h1 .vs {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.subtitle {
  max-width: 620px;
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--text-muted);
}

.hero-text .subtitle {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 900px) {
  .hero-text .subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-text .hero-cta {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .hero-text .hero-cta {
    justify-content: center;
  }
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
}

.hero-meta strong {
  font-size: 28px;
  color: var(--primary);
  font-weight: 800;
}

.hero-meta span {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

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

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 17px;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 820px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 820px;
  margin: 0 auto;
}

/* Document cards */
.doc-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-card-active {
  cursor: pointer;
  border-color: var(--primary);
}

.doc-card-active:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.doc-card-soon {
  cursor: pointer;
  background: #f1f5f9;
  opacity: 0.85;
}

.doc-card-soon:hover {
  opacity: 1;
}

.doc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: max-content;
}

.doc-badge-available {
  background: #dcfce7;
  color: #15803d;
}

.doc-badge-soon {
  background: #fef3c7;
  color: #b45309;
}

.doc-card h3 {
  font-size: 22px;
  margin: 0;
}

.doc-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
  flex-grow: 1;
}

.doc-card .btn {
  align-self: flex-start;
  margin-top: 6px;
}

.soon-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.card {
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #dbeafe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.card p {
  color: var(--text-muted);
  font-size: 15px;
}

.card-sample {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-color: var(--primary);
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
}

.card-sample p {
  flex-grow: 1;
}

.card-sample .btn {
  margin-top: 8px;
}

/* Compare two-column */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

.compare-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.tag-old {
  background: #fee2e2;
  color: #b91c1c;
}

.tag-new {
  background: #dcfce7;
  color: #15803d;
}

.compare-col ul {
  list-style: none;
}

.compare-col li {
  padding: 10px 0 10px 26px;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.compare-col li:last-child {
  border-bottom: none;
}

.compare-col li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Pricing */
.pricing-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

@media (max-width: 900px) {
  .pricing-card {
    justify-self: center;
  }
}

.pricing-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.price-tag .currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.price-tag .amount {
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-tag .period {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 6px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
}

.price-features li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.price-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-inner {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-state h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.modal-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: pop 0.35s ease-out;
}

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Report viewer */
.report-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pdf-viewer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.pdf-viewer iframe {
  display: block;
  width: 100%;
  height: 80vh;
  border: none;
}

/* Footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 56px 0 40px;
  }
  .section {
    padding: 56px 0;
  }
  .hero-meta {
    gap: 28px;
  }
}
