body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: #111827;
}

/* Let the shared Otto header/banner stack naturally like the reference page. */
.ot-navbar-container {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
}

.ot-navbar-container .otto-home-container,
.ot-navbar-container.fixed-nav .otto-home-container {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.ot-calc-content {
  padding-top: 0 !important;
}

a {
  text-decoration: none;
}

.paycheck-tool-shell {
  position: relative;
}

.paycheck-tool-frame {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 44%, #f7fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 32px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.10);
  padding: 28px;
}

.paycheck-tool-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.paycheck-kicker {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.paycheck-tool-title {
  max-width: 760px;
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

.paycheck-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 360px;
}

.paycheck-feature-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 13px;
  font-weight: 500;
}

.paycheck-tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 24px;
}

.paycheck-panel {
  border-radius: 28px;
}

.paycheck-panel-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #16233d 100%);
  color: #e2e8f0;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.paycheck-panel-main {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.20);
  padding: 24px;
}

.paycheck-panel-header {
  margin-bottom: 22px;
}

.paycheck-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.paycheck-panel-copy {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.76);
}

.paycheck-form-group {
  margin-bottom: 18px;
}

.paycheck-field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
}

.paycheck-field-sub {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(100, 116, 139, 0.9);
}

.paycheck-radio-stack {
  display: grid;
  gap: 10px;
}

.paycheck-radio,
.paycheck-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.paycheck-radio {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.paycheck-radio input,
.paycheck-pill input {
  accent-color: #2563eb;
}

.paycheck-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.paycheck-input:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.paycheck-input-muted {
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
}

.paycheck-input-small {
  padding: 10px 12px;
  border-radius: 14px;
}

.paycheck-input-prominent {
  font-size: 18px;
  font-weight: 600;
}

.paycheck-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.paycheck-accordion {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.paycheck-accordion-item {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 14px;
}

.paycheck-accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-weight: 600;
}

.paycheck-earnings-switch {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.paycheck-switch-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.paycheck-segmented {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.paycheck-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  font-weight: 600;
}

.paycheck-currency-field {
  position: relative;
}

.paycheck-currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-weight: 700;
}

.paycheck-currency-field .paycheck-input {
  padding-left: 34px;
}

.paycheck-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.paycheck-result-hero {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.24);
}

.paycheck-result-copy {
  font-size: 15px;
  opacity: 0.92;
}

.paycheck-result-amount {
  margin-top: 12px;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.paycheck-result-note {
  margin-top: 12px;
  max-width: 480px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.paycheck-breakdown-card,
.paycheck-chart-card {
  padding: 22px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.paycheck-card-head {
  margin-bottom: 18px;
}

.paycheck-row,
.paycheck-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.paycheck-row-strong {
  font-weight: 600;
  color: #334155;
}

.paycheck-row-negative {
  color: #dc2626;
}

.paycheck-row-warm {
  color: #c2410c;
}

.paycheck-row-total,
.paycheck-legend-row-total {
  border-bottom: 0;
  border-top: 2px solid rgba(148, 163, 184, 0.25);
  margin-top: 6px;
  padding-top: 16px;
  font-weight: 700;
  color: #166534;
}

.paycheck-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.paycheck-summary-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.paycheck-summary-item span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
}

.paycheck-summary-item strong {
  font-size: 1rem;
  color: #0f172a;
}

.paycheck-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.5rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.paycheck-state-link {
  color: #1d4ed8;
  display: block;
  font-size: 14px;
  font-weight: 500;
  padding: 3px 0;
}

.paycheck-state-link:hover {
  color: #1e3a8a;
}

.paycheck-chart-wrap {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paycheck-chart-ring {
  width: 240px;
  height: 240px;
  border-radius: 9999px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.paycheck-chart-ring::after {
  content: "";
  position: absolute;
  inset: 52px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.faq-answer.hidden,
.hidden {
  display: none !important;
}

.paycheck-faq-question {
  color: #111827;
  margin-top: 0;
  margin-bottom: 0;
  padding-right: 10px;
  line-height: 28px;
}

.paycheck-cta {
  background-image: radial-gradient(circle, #e0e0e0 1.1px, transparent 1.5px);
  background-size: 17px 17px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.paycheck-cta-title {
  font-size: 40px;
  font-weight: 600;
  color: #000;
}

.paycheck-btn {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.paycheck-btn-outline {
  border: 1.5px solid #3367d6;
  color: #3367d6;
  background: transparent;
}

.paycheck-btn-outline:hover {
  color: #2b55b0;
  border-color: #2b55b0;
}

.paycheck-btn-solid {
  color: #fff;
  background: #233ed9;
  border: 1.5px solid #233ed9;
}

.paycheck-btn-solid:hover {
  background: #1a2eaa;
  border-color: #1a2eaa;
}

.paycheck-friendly-section {
  border: 1px solid rgba(229, 231, 235, 1);
}

.paycheck-friendly-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.paycheck-friendly-copy {
  max-width: 920px;
  margin-top: 18px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.9;
}

.paycheck-year-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #4b5563;
  white-space: nowrap;
}

.paycheck-year-select select {
  border: 0;
  background: transparent;
  color: #4b5563;
  font: inherit;
  outline: none;
}

.paycheck-map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.paycheck-map-tab {
  flex: 1 1 170px;
  padding: 14px 18px;
  background: #ffffff;
  color: #0f5b70;
  border-right: 1px solid #d1d5db;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.paycheck-map-tab:last-child {
  border-right: 0;
}

.paycheck-map-tab.is-active {
  background: #0a5063;
  color: #ffffff;
}

.paycheck-map-stage {
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.paycheck-map-stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 0;
}

.paycheck-map-stage-label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.paycheck-map-stage-values {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.paycheck-map-state-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0f5b70;
  font-size: 12px;
  font-weight: 600;
}

.paycheck-map-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 4px;
  background: #6b7280;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.paycheck-map-canvas {
  position: relative;
  min-height: 520px;
  padding: 12px 20px 0;
  overflow: hidden;
  background: #ffffff;
}

.paycheck-map-viewport {
  min-height: 460px;
}

.paycheck-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.paycheck-map-region {
  cursor: pointer;
  transition: opacity 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.paycheck-map-region:hover,
.paycheck-map-region:focus-visible,
.paycheck-map-region.is-active {
  opacity: 1;
  stroke: #1f2937;
  stroke-width: 2.2;
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.12));
  outline: none;
}

.paycheck-map-outline {
  fill: none;
  stroke: #1f2937;
  stroke-width: 2.4;
  pointer-events: none;
}

.paycheck-map-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: min(320px, calc(100% - 48px));
  padding: 14px 16px;
  border: 2px solid #4b5563;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  color: #374151;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.12s ease;
}

.paycheck-map-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.paycheck-map-tooltip-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
  margin-bottom: 10px;
}

.paycheck-map-tooltip-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: 13px;
  line-height: 1.45;
}

.paycheck-map-tooltip-grid strong {
  color: #1f2937;
}

.paycheck-map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px 16px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.paycheck-map-gradient {
  width: min(360px, 52vw);
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c8eaf8 0%, #92d0ed 28%, #58b6df 58%, #178fbe 80%, #083f50 100%);
}

.paycheck-friendly-table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.paycheck-friendly-table-subtitle {
  margin-top: 6px;
  color: #6b7280;
  font-size: 14px;
}

.paycheck-friendly-table-wrap {
  border-color: #e5e7eb;
}

input[type="range"] {
  accent-color: #2563eb;
}

@media (max-width: 1024px) {
  .paycheck-friendly-header,
  .paycheck-map-stage-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .paycheck-tool-grid,
  .paycheck-main-grid {
    grid-template-columns: 1fr;
  }

  .paycheck-tool-intro,
  .paycheck-switch-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .paycheck-feature-strip {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .paycheck-tool-frame {
    padding: 18px;
    border-radius: 24px;
  }

  .paycheck-panel-sidebar,
  .paycheck-panel-main,
  .paycheck-breakdown-card,
  .paycheck-chart-card,
  .paycheck-result-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .paycheck-mini-grid,
  .paycheck-summary-grid {
    grid-template-columns: 1fr;
  }

  .paycheck-chart-wrap {
    width: 220px;
    height: 220px;
  }

  .paycheck-chart-ring {
    width: 200px;
    height: 200px;
  }

  .paycheck-chart-ring::after {
    inset: 42px;
  }

  .paycheck-cta-title {
    font-size: 30px;
  }

  .paycheck-map-tabs {
    border-radius: 24px;
  }

  .paycheck-map-tab {
    flex-basis: 100%;
    border-right: 0;
    border-bottom: 1px solid #d1d5db;
  }

  .paycheck-map-tab:last-child {
    border-bottom: 0;
  }

  .paycheck-map-canvas {
    min-height: 420px;
    padding: 12px 12px 0;
  }

  .paycheck-map-viewport {
    min-height: 320px;
  }

  .paycheck-map-tooltip {
    position: static;
    width: 100%;
    margin-bottom: 12px;
  }

  .paycheck-map-gradient {
    width: min(220px, 48vw);
  }
}
