:root {
  --ivms-ink: #1c1b2e;
  --ivms-muted: #5a5870;
  --ivms-blue: #25318D;
  --ivms-navy: #2D3680;
  --ivms-purple: #7b52cc;
  --ivms-purple-dark: #4f3192;
  --ivms-purple-soft: #f3eefb;
  --ivms-purple-border: #ded2f4;
  --ivms-line: #e9e3f5;
  --ivms-white: #ffffff;
  --ivms-green: #2e7d4f;
  --ivms-green-soft: #edf8f2;
  --ivms-bg: #fbf8ff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivms-bg);
}

body {
  margin: 0;
  color: var(--ivms-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, #f7f1ff 0%, #fbf8ff 42%, #ffffff 100%);
}

a {
  color: inherit;
}

.public-dvm-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-dvm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--ivms-ink);
}

.public-dvm-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 32px;
  border: 1px solid rgba(123, 82, 204, 0.22);
  border-radius: 8px;
  background: var(--ivms-white);
  color: var(--ivms-purple);
  font-weight: 900;
}

.public-dvm-header-link {
  border: 1px solid rgba(123, 82, 204, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ivms-purple-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.public-dvm-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.public-dvm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.78fr);
  gap: 34px;
  align-items: end;
  padding: 34px 0 30px;
}

.public-dvm-kicker {
  margin: 0 0 9px;
  color: var(--ivms-purple);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.public-dvm-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--ivms-blue);
  text-decoration: underline;
  text-decoration-color: var(--ivms-purple);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.public-dvm-lede {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--ivms-muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
}

.public-dvm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.public-dvm-steps div {
  min-height: 104px;
  border: 1px solid rgba(123, 82, 204, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.public-dvm-steps span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ivms-purple);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
}

.public-dvm-steps strong {
  display: block;
  color: var(--ivms-ink);
  font-size: 14px;
  line-height: 1.25;
}

.public-dvm-tool {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.public-dvm-info,
.public-dvm-form-card {
  border: 1px solid var(--ivms-line);
  border-radius: 8px;
  background: var(--ivms-white);
  box-shadow: 0 18px 44px rgba(48, 33, 82, 0.08);
}

.public-dvm-info {
  padding: 24px;
  border-color: rgba(123, 82, 204, 0.18);
  background: #fffefd;
  position: sticky;
  top: 18px;
}

.public-dvm-info h2,
.public-dvm-form-heading h2 {
  margin: 0;
  padding-left: 10px;
  border-left: 5px solid var(--ivms-purple);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--ivms-blue);
}

.public-dvm-info ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.public-dvm-info > p {
  margin: 14px 0 0;
  color: var(--ivms-muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.public-dvm-info li {
  position: relative;
  padding-left: 20px;
  color: var(--ivms-muted);
  font-size: 14px;
  line-height: 1.52;
  font-weight: 650;
}

.public-dvm-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ivms-purple);
}

.public-dvm-form-card {
  padding: 26px;
}

html.public-retention-calculator-html {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

html.public-incentive-calculator-html {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

body.public-retention-calculator-page {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

body.public-incentive-calculator-page {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

.public-retention-page-main,
.public-retention-tool,
.public-retention-native-shell,
.public-retention-tool #freeToolsRetentionBonusCalculatorRoot,
.public-retention-tool .free-tools-budget-form,
.public-retention-tool .free-tools-retention-layout,
.public-retention-tool .free-tools-retention-layout .ret-body,
.public-incentive-page-main,
.public-incentive-tool,
.public-incentive-native-shell,
.public-incentive-tool #freeToolsIncentiveBonusCalculatorRoot,
.public-incentive-tool .free-tools-budget-form {
  height: auto;
  max-height: none;
  overflow: visible;
}

.public-retention-page-main,
.public-incentive-page-main {
  width: min(1240px, calc(100% - 32px));
}

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

.public-retention-tool .public-dvm-info,
.public-incentive-tool .public-dvm-info {
  position: static;
}

.public-retention-tool .public-dvm-info ul,
.public-incentive-tool .public-dvm-info ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

.public-retention-native-shell,
.public-incentive-native-shell {
  min-width: 0;
}

.public-retention-native-heading,
.public-incentive-native-heading {
  margin: 0 0 14px;
}

.public-retention-native-heading h2,
.public-incentive-native-heading h2 {
  margin: 0;
  padding-left: 10px;
  border-left: 5px solid var(--ivms-purple);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--ivms-blue);
}

.public-retention-native-heading p,
.public-incentive-native-heading p {
  margin: 9px 0 0;
  color: var(--ivms-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

.public-retention-tool .free-tools-retention-layout {
  box-shadow: 0 18px 44px rgba(48, 33, 82, 0.08);
}

.public-retention-tool .free-tools-retention-layout .ret-grid2 {
  grid-template-columns: minmax(0, 1fr);
}

.public-retention-tool .free-tools-retention-layout .how-it-works {
  border: 1px solid #e4dff5;
  border-radius: 8px;
  background: #faf7ff;
  padding: 12px;
}

.public-retention-tool .free-tools-retention-milestone-grid.ms-config {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.public-retention-tool .free-tools-retention-layout .ms-card {
  min-width: 0;
}

.public-retention-tool .free-tools-retention-ms-head {
  gap: 12px;
}

.public-retention-tool .free-tools-retention-segment {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-retention-tool .ret-btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid rgba(123, 82, 204, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ivms-purple-dark);
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.public-dvm-form-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ivms-line);
  margin-bottom: 22px;
}

.public-dvm-form-heading p:last-child {
  margin: 9px 0 0;
  color: var(--ivms-muted);
  font-size: 14px;
  line-height: 1.45;
}

.public-dvm-form[hidden],
.free-tools-dvm-panel .free-tools-budget-form[hidden],
.public-dvm-result[hidden] {
  display: none;
}

.public-dvm-fieldset {
  border: 1px solid var(--ivms-line);
  border-radius: 8px;
  padding: 18px;
  margin: 0 0 18px;
  background: #fffefe;
}

.public-dvm-fieldset h3 {
  margin: 0 0 14px;
  color: var(--ivms-navy);
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}

.public-dvm-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.public-dvm-fields label,
.public-dvm-field {
  display: grid;
  gap: 7px;
  color: var(--ivms-ink);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.public-dvm-fields input,
.public-dvm-fields select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dcd5ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 11px;
  color: var(--ivms-ink);
  font: inherit;
  font-weight: 650;
  outline: none;
}

.public-dvm-fields input:focus,
.public-dvm-fields select:focus {
  border-color: var(--ivms-purple);
  box-shadow: 0 0 0 3px rgba(123, 82, 204, 0.13);
}

.free-tools-atc-label-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.free-tools-atc-label-row > label {
  min-width: 0;
}

.free-tools-atc-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.free-tools-atc-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #9a80d4;
  border-radius: 50%;
  background: #f4f0ff;
  color: #5a2eab;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  padding: 0;
  cursor: pointer;
}

.free-tools-atc-info-button:hover,
.free-tools-atc-info-button:focus-visible {
  background: #eae2ff;
  border-color: var(--ivms-purple);
  color: #3b1b78;
  outline: none;
  box-shadow: 0 0 0 3px rgba(123, 82, 204, 0.16);
}

.free-tools-atc-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 48px));
  border-radius: 8px;
  background: #1c1b2e;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(28, 27, 46, 0.24);
  padding: 11px 12px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
  text-align: left;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.free-tools-atc-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1c1b2e;
}

.free-tools-atc-tooltip p {
  margin: 0 0 7px;
}

.free-tools-atc-tooltip p:last-child {
  margin-bottom: 0;
}

.free-tools-atc-info:hover .free-tools-atc-tooltip,
.free-tools-atc-info:focus-within .free-tools-atc-tooltip {
  opacity: 1;
  visibility: visible;
}

.public-dvm-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 8px 0 0;
  color: var(--ivms-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
}

.public-dvm-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--ivms-purple);
  margin: 2px 0 0;
}

.public-dvm-error {
  margin-top: 14px;
  border: 1px solid #f1b4b4;
  border-radius: 8px;
  background: #fff5f5;
  color: #8f2626;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.public-dvm-actions,
.free-tools-budget-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.public-dvm-actions button,
.free-tools-native-button {
  border: 0;
  border-radius: 8px;
  background: var(--ivms-purple);
  color: #ffffff;
  min-height: 46px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(123, 82, 204, 0.2);
}

.public-dvm-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.public-dvm-actions p {
  margin: 0;
  color: var(--ivms-muted);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 650;
  flex: 1 1 230px;
}

.public-dvm-result {
  margin-top: 8px;
}

.free-tools-dvm-result-message,
.free-tools-employee-result-message {
  margin: 0 0 16px;
  border: 1px solid rgba(46, 125, 79, 0.18);
  border-radius: 8px;
  background: var(--ivms-green-soft);
  color: var(--ivms-green);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 850;
}

.free-tools-dvm-result-grid,
.free-tools-employee-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.free-tools-employee-result-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 20px;
}

.free-tools-dvm-result-card,
.free-tools-employee-result-card {
  border: 1px solid var(--ivms-purple-border);
  border-radius: 8px;
  background: var(--ivms-purple-soft);
  padding: 15px;
  min-height: 104px;
}

.free-tools-employee-result-card--hero {
  min-height: 148px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f1fc 100%);
  box-shadow: 0 16px 34px rgba(50, 32, 92, 0.08);
}

.free-tools-dvm-result-card span,
.free-tools-employee-result-card span {
  display: block;
  color: var(--ivms-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.free-tools-dvm-result-card strong,
.free-tools-employee-result-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ivms-ink);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.05;
  letter-spacing: 0;
}

.free-tools-employee-result-card--hero strong {
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1;
}

.free-tools-dvm-result-section,
.free-tools-employee-result-section {
  border: 1px solid var(--ivms-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  margin-top: 14px;
}

.free-tools-employee-result-section {
  display: grid;
  gap: 12px;
}

.free-tools-dvm-result-section h3,
.free-tools-employee-result-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.free-tools-employee-result-section h3 {
  margin-bottom: 0;
}

.free-tools-dvm-result-section p,
.free-tools-employee-result-section p {
  margin: 0;
  color: var(--ivms-muted);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 650;
}

.free-tools-dvm-result-section table,
.free-tools-employee-result-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.free-tools-dvm-result-section th,
.free-tools-dvm-result-section td,
.free-tools-employee-result-section th,
.free-tools-employee-result-section td {
  border-top: 1px solid var(--ivms-line);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.free-tools-dvm-result-section th,
.free-tools-employee-result-section th {
  width: 52%;
  padding-right: 12px;
  color: var(--ivms-muted);
  font-weight: 850;
}

.free-tools-dvm-result-section td,
.free-tools-employee-result-section td {
  color: var(--ivms-ink);
  font-weight: 850;
}

.free-tools-dvm-result-cta,
.free-tools-employee-result-cta {
  border: 1px solid rgba(123, 82, 204, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbf8ff 0%, #f3eefb 100%);
  padding: 18px;
  margin-top: 14px;
}

.free-tools-dvm-result-cta h3,
.free-tools-employee-result-cta h3 {
  margin: 0;
  color: var(--ivms-ink);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.free-tools-dvm-result-cta p,
.free-tools-employee-result-cta p {
  margin: 9px 0 0;
  color: var(--ivms-muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.free-tools-employee-result-section--explanation {
  gap: 10px;
}

.free-tools-dvm-result-cta-button,
.free-tools-employee-result-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--ivms-purple);
  color: #ffffff;
  padding: 11px 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(123, 82, 204, 0.2);
}

.free-tools-budget-result {
  display: grid;
  gap: 14px;
}

.free-tools-budget-result[hidden] {
  display: none;
}

.free-tools-budget-result-message {
  margin: 0 0 2px;
  border: 1px solid rgba(46, 125, 79, 0.18);
  border-radius: 8px;
  background: var(--ivms-green-soft);
  color: var(--ivms-green);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 850;
}

.free-tools-budget-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.free-tools-budget-result-card {
  border: 1px solid var(--ivms-purple-border);
  border-radius: 8px;
  background: var(--ivms-purple-soft);
  padding: 15px;
  min-height: 112px;
}

.free-tools-budget-result-card--hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f1fc 100%);
  box-shadow: 0 16px 34px rgba(50, 32, 92, 0.08);
}

.free-tools-budget-result-card span {
  display: block;
  color: var(--ivms-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.free-tools-budget-result-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ivms-ink);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

.free-tools-budget-result-section,
.free-tools-budget-result-cta {
  border: 1px solid var(--ivms-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.free-tools-budget-result-section h3,
.free-tools-budget-result-cta h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.free-tools-budget-result-section p,
.free-tools-budget-result-cta p {
  margin: 0 0 10px;
  color: var(--ivms-muted);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 650;
}

.free-tools-budget-result-section p:last-child,
.free-tools-budget-result-cta p:last-child {
  margin-bottom: 0;
}

.free-tools-budget-result-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.free-tools-budget-result-section th,
.free-tools-budget-result-section td {
  border-top: 1px solid var(--ivms-line);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.free-tools-budget-result-section th {
  width: 42%;
  padding-right: 12px;
  color: var(--ivms-muted);
  font-weight: 850;
}

.free-tools-budget-result-section td {
  color: var(--ivms-ink);
  font-weight: 850;
}

.free-tools-budget-result-cta {
  border-color: rgba(123, 82, 204, 0.2);
  background: linear-gradient(180deg, #fbf8ff 0%, #f3eefb 100%);
}

.free-tools-budget-result-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 8px;
  background: var(--ivms-purple);
  color: #ffffff;
  padding: 11px 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(123, 82, 204, 0.2);
}

@media (max-width: 900px) {
  .public-dvm-hero,
  .public-dvm-tool {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-dvm-info {
    position: static;
  }
}

@media (max-width: 760px) {
  .public-dvm-header,
  .public-dvm-page {
    width: min(100% - 24px, 1120px);
  }

  .public-dvm-header {
    min-height: 66px;
  }

  .public-dvm-brand span:last-child {
    display: none;
  }

  .public-dvm-header-link {
    padding: 8px 10px;
  }

  .public-dvm-page {
    padding-top: 8px;
  }

  .public-dvm-hero {
    gap: 22px;
    padding: 22px 0 24px;
  }

  .public-dvm-lede {
    font-size: 16px;
  }

  .public-dvm-steps,
  .public-dvm-fields,
  .free-tools-budget-result-grid,
  .free-tools-dvm-result-grid,
  .free-tools-employee-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-dvm-steps div {
    min-height: 76px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .public-dvm-info,
  .public-dvm-form-card {
    padding: 18px;
  }

  .public-dvm-fieldset {
    padding: 14px;
  }

  .free-tools-budget-result-section th,
  .free-tools-budget-result-section td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .free-tools-budget-result-cta-button {
    width: 100%;
  }

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

  .public-dvm-actions button,
  .free-tools-native-button {
    width: 100%;
  }
}
