:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --accent: #2563eb;
  --accent-2: #f97316;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  --error: #dc2626;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.08), transparent 22%),
    var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.page p,
.page li {
  text-align: justify;
  text-justify: inter-word;
}

.top-nav {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 14px;
}

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

.top-nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-content h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 44px);
  text-align: justify;
  text-justify: inter-word;
}

.hero-content .lede {
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.misconception {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  color: var(--muted);
}

.misconception-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.primary {
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: #f8fafc;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary:hover {
  transform: translateY(-1px);
}

.hero-card,
.post-pack-card {
  background: linear-gradient(165deg, #ffffff, #f3f6ff);
  border: 1px solid var(--border);
  padding: 18px 18px 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-card .card-title,
.post-pack-card .card-title {
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.hero-card ul,
.post-pack-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.decision-pack,
.why,
.for-you {
  margin-bottom: 24px;
}

.section-lede {
  margin: 0 0 14px;
  color: var(--muted);
}

.decision-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.decision-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.decision-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.decision-card-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

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

.decision-card-lede {
  margin: 0 0 10px;
  font-weight: 600;
}

.decision-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.decision-pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.post-pack-card {
  margin-top: 16px;
}
.list-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.list-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.how {
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0 0 14px;
}

.section-note {
  color: var(--muted);
  margin-top: 10px;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.info-card h3 {
  margin: 0 0 6px;
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  background: #e0f2fe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 6px 12px;
  color: #0b3b88;
  font-size: 13px;
}

.calculator,
.results {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.tooltip-trigger:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
}

.tooltip {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.tooltip.is-open {
  display: block;
}

input[type="number"] {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

input[type="number"]:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
}

.error {
  color: var(--error);
  min-height: 18px;
  margin-top: 6px;
}

.assumptions {
  margin-top: 14px;
  color: var(--muted);
}

.assumptions summary {
  font-weight: 600;
  cursor: pointer;
}

.assumptions .form-grid {
  margin-top: 12px;
}

.assumption-group {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.assumption-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.assumption-group h4 {
  margin: 0;
  font-size: 15px;
}

.assumption-group .micro-hint {
  margin-top: 0;
}

.assumptions ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.results-guidance {
  margin: 12px 0 18px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
}

.results-guidance p {
  margin: 0 0 8px;
}

.results-guidance p:last-child {
  margin-bottom: 0;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #f8fafc;
}

tbody tr.selected {
  background: #e0ecff;
}

.results-cards {
  display: none;
}

.upgrade {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  padding: 18px 18px 14px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.upgrade-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.upgrade-heading h3 {
  margin: 6px 0 6px;
}

.upgrade-sub {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.upgrade-badge {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: #0b3b88;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
  white-space: nowrap;
}

.upgrade-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 8px;
}

.upgrade-button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.upgrade-button.outline {
  background: rgba(37, 99, 235, 0.08);
  color: #0b3b88;
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: none;
}

.upgrade-button.outline:hover {
  background: rgba(37, 99, 235, 0.14);
}

.upgrade-note {
  margin: 6px 0 2px;
  color: var(--muted);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.32);
  width: min(820px, 100%);
}

.modal-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.modal h3 {
  margin: 0 0 8px;
}

.modal-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 18px;
  margin: 14px 0 6px;
}

.modal-block-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.waitlist-overlay {
  position: absolute;
  inset: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 1;
}

.waitlist-card {
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
  padding: 16px 18px 14px;
  text-align: center;
}

.waitlist-body {
  margin: 6px 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.waitlist-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.waitlist-form input[type="email"]:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
}

.waitlist-feedback {
  margin: 4px 0 6px;
  color: var(--accent);
  font-weight: 700;
}

.waitlist-feedback.error {
  color: var(--error);
}

.secondary {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary:hover {
  background: #f8fafc;
}

.modal-link {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  z-index: 2;
}

.micro-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.modal-backdrop[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.result-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.result-card.selected {
  background: #e0ecff;
  border-color: #93c5fd;
}

.result-card-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.result-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

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

.result-card-value {
  font-weight: 600;
  text-align: right;
}

.credit-low {
  color: #22c55e;
}

.credit-medium {
  color: #fbbf24;
}

.credit-stabilizing {
  color: #f59e0b;
}

.credit-high {
  color: #f97316;
}

.faq {
  margin: 32px 0 24px;
}

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

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.faq-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.articles {
  margin: 32px 0 24px;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card-featured {
  background: #fff4cc;
  border-color: #f0c95c;
}

.article-card h3 {
  margin: 0;
}

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

.article-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}

.article-link:hover {
  text-decoration: underline;
}

.article-title-link {
  color: var(--text);
  text-decoration: none;
}

.article-title-link:hover {
  color: var(--accent);
}

.sources details {
  margin-top: 24px;
}

.sources summary {
  font-weight: 600;
  cursor: pointer;
}

.sources ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.article-page {
  max-width: 860px;
}

.article-header {
  margin-bottom: 18px;
}

.article-header a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.article-content h1 {
  margin: 10px 0 8px;
}

.article-content h2 {
  margin: 22px 0 8px;
}

.article-content p {
  color: var(--muted);
  line-height: 1.6;
}

.article-content ul,
.article-content ol {
  color: var(--muted);
  line-height: 1.6;
}

.article-cta {
  margin: 24px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.article-cta a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.footer {
  text-align: center;
  color: var(--muted);
  margin-top: 32px;
}

.footer p {
  text-align: center;
}

@media (max-width: 800px) {
  .top-nav {
    flex-wrap: wrap;
  }

  .hero-content .lede {
    max-width: 100%;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .upgrade-heading {
    flex-direction: column;
  }

  .upgrade-badge {
    align-self: flex-start;
  }

  .modal {
    max-height: 90vh;
    overflow-y: auto;
  }

  .table-wrapper {
    display: none;
  }

  .results-cards {
    display: grid;
    gap: 12px;
  }
}
