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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f7fb;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header / nav */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.8rem;
}

.logo-text span {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.7rem;
}

.logo-text strong {
  color: #0f172a;
  font-weight: 600;
  font-size: 0.92rem;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.header nav a {
  position: relative;
  color: #475569;
  font-weight: 500;
  padding-bottom: 0.1rem;
}

.header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #2563eb;
  transition: width 0.18s ease-out;
}

.header nav a:hover {
  color: #1d4ed8;
}

.header nav a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(155deg, #eef3ff 0%, #f5f7fb 62%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #e0edff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw + 0.25rem, 2.75rem);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 0.9rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #64748b;
}

/* Hero visual stat cards */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
}

.hero-stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.75rem 1.4rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  min-width: 130px;
}

.hero-stat strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.1;
}

.hero-stat span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* Page-updated trust badge */
.page-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.page-updated::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* Calculator section */
.calculator {
  padding: 2.5rem 0 2.5rem;
}

.calculator-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.calculator-header h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.calculator-header p {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7280;
}

/* Section heading accent bar */
.calculator-header h2,
.about h2,
.faq h2 {
  position: relative;
  padding-left: 0.9rem;
}

.calculator-header h2::before,
.about h2::before,
.faq h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.1em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #93c5fd);
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
  padding: 1.35rem 1.5rem 1.45rem;
}

.form.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Form group section labels */
.form-group-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #94a3b8;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.2rem;
}

.form-group-label:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.form label {
  font-size: 0.84rem;
  font-weight: 500;
  color: #4b5563;
}

.form input,
.form select {
  margin-top: 0.2rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 0.9rem;
  color: #111827;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out,
    background-color 0.15s ease-out;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px #2563eb20, 0 0 0 4px #2563eb20;
}

.form input[disabled],
.form select[disabled] {
  cursor: not-allowed;
  background-color: #e5e7eb;
  color: #9ca3af;
}

/* Field hint text */
.field-hint {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: -0.1rem;
}

#calcBtn {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
  transition: transform 0.07s ease-out, box-shadow 0.07s ease-out,
    filter 0.07s ease-out;
}

#calcBtn:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.42);
}

#calcBtn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* Results card */
.results.card {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.results h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

/* Empty state */
.results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  color: #94a3b8;
  padding: 1rem 0.5rem;
  gap: 0.75rem;
}

.results-empty svg {
  opacity: 0.35;
  flex-shrink: 0;
}

.results-empty p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
}

.results-empty strong {
  color: #64748b;
}

/* Result tiles */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.result-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid #dbe6f2;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.result-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.result-value {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.result-box-muted {
  background: #f8fafc;
}

.result-box-positive {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #bbf7d0;
}

.result-box-positive .result-label {
  color: #15803d;
}

.result-box-positive .result-value {
  color: #166534;
}

.result-box-danger {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fecaca;
}

.result-box-danger .result-label {
  color: #b91c1c;
}

.result-box-danger .result-value {
  color: #b91c1c;
}

.result-box-hero {
  margin-top: 0.9rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #86efac;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(22, 101, 52, 0.12);
}

.highlight-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #15803d;
}

.highlight-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: #166534;
  line-height: 1.1;
}

/* Tax note & disclaimer */
.results-tax-note {
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  color: #9ca3af;
  padding-left: 0.1rem;
}

.results-disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.5;
  text-align: center;
  font-style: italic;
  border-top: 1px dashed #e5e7eb;
  padding-top: 0.65rem;
}

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

  .result-value {
    font-size: 1.08rem;
  }

  .highlight-value {
    font-size: 1.55rem;
  }
}

/* Ad section */
.ad-section {
  padding: 0 0 2.25rem;
}

.ad-card {
  margin-top: 1.25rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px dashed #cbd5f5;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 80px;
}

.ad-label {
  align-self: flex-start;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #9ca3af;
}

/* Informational sections */
.about,
.faq {
  padding: 2.75rem 0;
}

/* Alternating section backgrounds for visual separation */
.about:nth-of-type(2) {
  background: #f8faff;
  margin: 0 calc(-50vw + 50%);
  padding: 2.75rem calc(50vw - 50%);
}

.about h2,
.faq h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about p,
.faq p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4b5563;
}

.about a,
.faq a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ accordion (details/summary) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.faq details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s ease-out;
}

.faq details[open] {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  border-color: #bfdbfe;
}

.faq summary {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  -webkit-user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: #2563eb;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease-out;
}

.faq details[open] > summary::after {
  transform: rotate(45deg);
}

.faq details > p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.93rem;
  line-height: 1.75;
  color: #4b5563;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.8rem;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 1.1rem 0 1.4rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
}

.footer p a {
  color: #2563eb;
}

.social-share {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.social-share a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.8rem;
  color: #374151;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s;
}

.social-share a:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .hero-visual {
    flex-direction: row;
    width: 100%;
  }

  .hero-stat {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.75rem;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .results.card {
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 0.75rem;
  }

  .header nav {
    gap: 1rem;
    font-size: 0.82rem;
  }

  .card {
    padding: 1.1rem 1.1rem 1.25rem;
  }

  .hero-stat strong {
    font-size: 1.2rem;
  }

  .highlight-value {
    font-size: 1.35rem;
  }

  .faq summary {
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
  }

  .faq details > p {
    padding: 0 1rem 0.9rem;
    padding-top: 0.7rem;
  }
}

@media (max-width: 420px) {
  .hero-visual {
    display: none;
  }
}

/* ── Pay Matrix Reference Table ── */
.pay-matrix-section {
  padding: 2.75rem 0;
}

.pay-matrix-section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 0.9rem;
}

.pay-matrix-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.1em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #93c5fd);
}

.pay-matrix-section > p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4b5563;
}

.pay-matrix-section a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pay-matrix-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-top: 0.5rem;
}

.pay-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  background: #fff;
}

.pay-matrix-table thead th {
  background: #f8faff;
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.pay-matrix-table thead th small {
  display: block;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #94a3b8;
  font-size: 0.72rem;
}

.pay-matrix-table tbody td {
  padding: 0.55rem 1rem;
  color: #4b5563;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.pay-matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.pay-matrix-table tbody tr:hover td {
  background: #f8faff;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 0.4rem;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.8rem;
}

.pay-matrix-note {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.6rem;
  line-height: 1.6;
}

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

.section-note {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.section-note a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-card,
.source-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.info-card {
  padding: 1.15rem;
}

.info-card h3,
.source-box h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #0f172a;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4b5563;
}

.source-box {
  padding: 1.15rem 1.2rem;
  margin-top: 1rem;
}

.source-list {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  color: #4b5563;
}

.source-list li {
  margin: 0.45rem 0;
  line-height: 1.7;
}

.content-page {
  padding: 2.75rem 0 3.5rem;
}

.page-hero-simple {
  padding: 0 0 1.25rem;
}

.page-hero-simple h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.18;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.page-hero-simple .hero-lead {
  max-width: 760px;
}

.page-section {
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid #e2e8f0;
}

.page-section:first-of-type {
  border-top: none;
}

.page-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.page-section p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4b5563;
}

.page-section a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  max-width: 860px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  font-size: 0.82rem;
}

.footer-links a {
  color: #2563eb;
}

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